/* ============================================================
   MYCP CLASSROOM — shared styles
   Tokens match masteryourcareerpath.com (index.html :root)
   ============================================================ */
:root {
  --gold:        #F5A623;
  --gold-dark:   #D4891A;
  --navy:        #1B3A8C;
  --navy-dark:   #122970;
  --white:       #FFFFFF;
  --off-white:   #F8F8F8;
  --light-grey:  #E8E8E8;
  --text-dark:   #1A1A2E;
  --text-mid:    #4A4A6A;

  --font-display: 'Playfair Display', serif;
  --font-body:    'Plus Jakarta Sans', sans-serif;

  --radius:    10px;
  --radius-lg: 16px;
  --shadow-sm: 0 2px 8px rgba(27, 58, 140, 0.08);
  --shadow-md: 0 6px 24px rgba(27, 58, 140, 0.12);
  --shadow-lg: 0 16px 48px rgba(27, 58, 140, 0.16);
  --transition: 0.25s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--off-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Top bar (all classroom pages) ---------- */
.learn-topbar {
  background: var(--white);
  border-bottom: 1px solid var(--light-grey);
  position: sticky;
  top: 0;
  z-index: 100;
}
.learn-topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.learn-logo {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.01em;
}
.learn-logo span { color: var(--gold); }
.learn-nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 0.9rem;
  color: var(--text-mid);
}
.learn-nav-right a { transition: color var(--transition); }
.learn-nav-right a:hover { color: var(--navy); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  width: 100%;
}
.btn--gold {
  background: var(--gold);
  color: var(--navy-dark);
  border-color: var(--gold);
}
.btn--gold:hover:not(:disabled) { background: var(--gold-dark); border-color: var(--gold-dark); }
.btn--navy-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn--navy-outline:hover:not(:disabled) { background: var(--navy); color: var(--white); }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* ---------- Auth card layout ---------- */
.auth-shell {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  background:
    radial-gradient(circle at 15% 20%, rgba(27,58,140,0.06) 0%, transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(245,166,35,0.08) 0%, transparent 45%);
}
.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 40px 36px;
}
.auth-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
.auth-title {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}
.auth-sub {
  font-size: 0.92rem;
  color: var(--text-mid);
  margin-bottom: 28px;
}
.auth-sub a { color: var(--navy); font-weight: 600; text-decoration: underline; }

.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 6px;
}
.field input {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--light-grey);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-dark);
  transition: border-color var(--transition);
}
.field input:focus {
  outline: none;
  border-color: var(--navy);
}

.form-footer-link {
  text-align: center;
  margin-top: 20px;
  font-size: 0.88rem;
  color: var(--text-mid);
}
.form-footer-link a { color: var(--navy); font-weight: 600; }
.form-footer-link a:hover { text-decoration: underline; }

.alert {
  padding: 12px 14px;
  border-radius: var(--radius);
  font-size: 0.85rem;
  margin-bottom: 18px;
  display: none;
}
.alert.visible { display: block; }
.alert--error { background: #FDEAEA; color: #B3261E; border: 1px solid #F5C2C0; }
.alert--success { background: #EAF6EC; color: #1E7B34; border: 1px solid #C3E6CB; }

/* ---------- Generic loading / empty states ---------- */
.learn-loading, .learn-empty {
  text-align: center;
  color: var(--text-mid);
  padding: 80px 24px;
  font-size: 0.95rem;
}

@media (max-width: 480px) {
  .auth-card { padding: 32px 24px; }
}
