/* ═══════════════════════════════════════════════════════════════════
   ACCOMPLYSH AUTH PAGES — register, logon
   Font: Manrope (loaded via landing.css import) + system fallback
   Primary: #0B63F6  |  Text: #0F1B3D
═══════════════════════════════════════════════════════════════════ */

/* ─── 1. TOKENS ─────────────────────────────────────────────────── */
:root {
  --auth-blue:       #0B63F6;
  --auth-blue-dark:  #063CBF;
  --auth-blue-soft:  #EEF3FF;
  --auth-text:       #0F1B3D;
  --auth-muted:      #6B7280;
  --auth-border:     #E5E7EB;
  --auth-bg:         #F2F5FA;
  --auth-green:      #16A34A;
  --auth-green-soft: #DCFCE7;
  --auth-purple:     #7C3AED;
  --auth-purple-soft:#F3E8FF;
  --auth-orange:     #F97316;
  --auth-orange-soft:#FFF7ED;
  --auth-red:        #EF4444;
  --auth-radius:     16px;
  --auth-shadow:     0 20px 60px rgba(15,27,61,0.10), 0 2px 8px rgba(15,27,61,0.05);
}

/* ─── 2. PAGE SHELL ─────────────────────────────────────────────── */
.auth-page {
  min-height: 100vh;
  background: var(--auth-bg);
  display: flex;
  flex-direction: column;
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--auth-text);
}

/* ─── 3. TOP BAR ────────────────────────────────────────────────── */
.auth-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
  flex-shrink: 0;
}

.auth-topbar__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--auth-text);
}

.auth-topbar__logo-mark {
  width: 36px;
  height: 36px;
  background: var(--auth-blue);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-topbar__logo-mark svg {
  width: 20px;
  height: 20px;
}

.auth-topbar__brand {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.auth-topbar__right {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--auth-muted);
}

.auth-topbar__login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  padding: 0 20px;
  border: 1.5px solid var(--auth-border);
  border-radius: 9px;
  font-size: 14px;
  font-weight: 600;
  color: var(--auth-text);
  text-decoration: none;
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.auth-topbar__login:hover {
  border-color: var(--auth-blue);
  box-shadow: 0 0 0 3px rgba(11,99,246,0.08);
}

/* ─── 4. CARD ───────────────────────────────────────────────────── */
.auth-center {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 40px 48px;
}

.auth-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  max-width: 980px;
  background: #fff;
  border-radius: var(--auth-radius);
  box-shadow: var(--auth-shadow);
  overflow: hidden;
  min-height: 680px;
}

/* ─── 5. FORM SIDE ──────────────────────────────────────────────── */
.auth-form-side {
  padding: 48px 44px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.auth-form-title {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--auth-text);
  margin-bottom: 6px;
}

.auth-form-sub {
  font-size: 14px;
  color: var(--auth-muted);
  margin-bottom: 24px;
  line-height: 1.5;
}

/* OAuth buttons */
.auth-oauth-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 44px;
  border: 1.5px solid var(--auth-border);
  border-radius: 10px;
  background: #fff;
  font-size: 14px;
  font-weight: 600;
  color: var(--auth-text);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  margin-bottom: 10px;
  font-family: inherit;
}
.auth-oauth-btn:hover {
  border-color: #bbb;
  background: #fafafa;
}
.auth-oauth-btn svg,
.auth-oauth-btn img {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  color: var(--auth-muted);
  font-size: 13px;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--auth-border);
}

/* Form fields */
.auth-field {
  margin-bottom: 14px;
}

.auth-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--auth-text);
  margin-bottom: 6px;
}

.auth-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.auth-input-wrap svg.auth-input-ico {
  position: absolute;
  left: 13px;
  width: 16px;
  height: 16px;
  color: var(--auth-muted);
  pointer-events: none;
  flex-shrink: 0;
}

.auth-input-wrap input {
  width: 100%;
  height: 44px;
  padding: 0 13px 0 38px;
  border: 1.5px solid var(--auth-border);
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  color: var(--auth-text);
  background: #fff;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.auth-input-wrap input::placeholder { color: #B0B8C8; }
.auth-input-wrap input:focus {
  border-color: var(--auth-blue);
  box-shadow: 0 0 0 3px rgba(11,99,246,0.10);
}
.auth-input-wrap input.auth-input--error {
  border-color: var(--auth-red);
}

.auth-eye-btn {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  color: var(--auth-muted);
  display: flex;
  align-items: center;
}
.auth-eye-btn svg { width: 17px; height: 17px; }
.auth-eye-btn:hover { color: var(--auth-text); }

/* Error message */
.auth-error-msg {
  font-size: 12px;
  color: var(--auth-red);
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Password requirements */
.auth-pw-reqs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 12px;
  margin: 12px 0 16px;
}

.auth-pw-req {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--auth-muted);
  transition: color 0.15s;
}

.auth-pw-req.met {
  color: var(--auth-green);
}

.auth-pw-req-dot {
  width: 14px;
  height: 14px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s;
}

.auth-pw-req.met .auth-pw-req-dot {
  background: var(--auth-green);
  border-color: var(--auth-green);
}

.auth-pw-req.met .auth-pw-req-dot::after {
  content: '';
  width: 5px;
  height: 3px;
  border-left: 1.5px solid #fff;
  border-bottom: 1.5px solid #fff;
  transform: rotate(-45deg) translateY(-1px);
}

/* Submit button */
.auth-submit-btn {
  width: 100%;
  height: 48px;
  background: var(--auth-blue);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  margin-top: 4px;
}
.auth-submit-btn:hover { background: var(--auth-blue-dark); }
.auth-submit-btn:active { transform: scale(0.99); }
.auth-submit-btn:disabled {
  background: #A0B4D6;
  cursor: not-allowed;
}

/* Terms */
.auth-terms {
  font-size: 12px;
  color: var(--auth-muted);
  text-align: center;
  margin-top: 14px;
  line-height: 1.6;
}
.auth-terms a {
  color: var(--auth-blue);
  text-decoration: none;
  font-weight: 600;
}
.auth-terms a:hover { text-decoration: underline; }

/* Alert message */
.auth-alert {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.auth-alert--error {
  background: #FEF2F2;
  color: #991B1B;
  border: 1px solid #FECACA;
}
.auth-alert--success {
  background: var(--auth-green-soft);
  color: #14532D;
  border: 1px solid #BBF7D0;
}

/* ─── 6. MARKETING SIDE ─────────────────────────────────────────── */
.auth-mkt-side {
  background: var(--auth-blue-soft);
  padding: 48px 44px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  position: relative;
  overflow: hidden;
}

/* Decorative + marks */
.auth-mkt-side::before,
.auth-mkt-side::after {
  content: '+';
  position: absolute;
  font-size: 22px;
  font-weight: 300;
  color: rgba(11,99,246,0.20);
  pointer-events: none;
}
.auth-mkt-side::before { top: 32px; left: 28px; }
.auth-mkt-side::after  { bottom: 120px; right: 32px; }

.auth-mkt-heading {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--auth-text);
  line-height: 1.2;
}

/* Feature list */
.auth-feat-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.auth-feat-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.auth-feat-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.auth-feat-icon svg { width: 22px; height: 22px; }

.auth-feat-icon--blue   { background: #DBEAFE; color: #1D4ED8; }
.auth-feat-icon--purple { background: var(--auth-purple-soft); color: var(--auth-purple); }
.auth-feat-icon--green  { background: var(--auth-green-soft); color: var(--auth-green); }
.auth-feat-icon--orange { background: var(--auth-orange-soft); color: var(--auth-orange); }

.auth-feat-text h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--auth-text);
  margin-bottom: 3px;
}
.auth-feat-text p {
  font-size: 13px;
  color: var(--auth-muted);
  line-height: 1.55;
}

/* Social proof */
.auth-social-proof {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border-radius: 12px;
  padding: 14px 18px;
}

.auth-avatars {
  display: flex;
  align-items: center;
}
.auth-av {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid #fff;
  margin-left: -8px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.auth-av:first-child { margin-left: 0; }
.auth-av--badge {
  background: var(--auth-blue);
  font-size: 11px;
  font-weight: 800;
  width: 38px;
  height: 38px;
}

.auth-social-proof-text {
  font-size: 13px;
  color: var(--auth-text);
  line-height: 1.4;
}
.auth-social-proof-text strong { color: var(--auth-blue); font-weight: 700; }

/* Trust cards */
.auth-trust-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.auth-trust-card {
  background: #fff;
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.auth-trust-ico {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.auth-trust-ico svg { width: 18px; height: 18px; }
.auth-trust-ico--blue  { background: #DBEAFE; color: #1D4ED8; }
.auth-trust-ico--green { background: var(--auth-green-soft); color: var(--auth-green); }

.auth-trust-card h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--auth-text);
  margin-bottom: 3px;
}
.auth-trust-card p {
  font-size: 12px;
  color: var(--auth-muted);
  line-height: 1.5;
}

/* ─── 7. LOGIN-SPECIFIC EXTRAS ──────────────────────────────────── */

/* Remember me + forgot password row */
.auth-remember-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 12px 0 18px;
}

.auth-checkbox-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
  font-size: 13px;
  color: var(--auth-text);
}

.auth-checkbox-wrap input[type="checkbox"] {
  width: 16px;
  height: 16px;
  border: 1.5px solid var(--auth-border);
  border-radius: 4px;
  accent-color: var(--auth-blue);
  cursor: pointer;
  flex-shrink: 0;
}

.auth-forgot-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--auth-blue);
  text-decoration: none;
}
.auth-forgot-link:hover { text-decoration: underline; }

/* Login right panel */
.auth-logon-mkt {
  background: linear-gradient(160deg, #F0F4FF 0%, #E8EFFE 100%);
  padding: 36px 40px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  gap: 20px;
}

.auth-logon-mkt::before {
  content: '+';
  position: absolute;
  top: 28px; left: 24px;
  font-size: 22px;
  font-weight: 300;
  color: rgba(11,99,246,0.18);
  pointer-events: none;
}
.auth-logon-mkt::after {
  content: '+';
  position: absolute;
  bottom: 80px; right: 24px;
  font-size: 22px;
  font-weight: 300;
  color: rgba(11,99,246,0.18);
  pointer-events: none;
}

.auth-logon-mkt-heading {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--auth-text);
  text-align: center;
  line-height: 1.2;
}

.auth-logon-mkt-sub {
  font-size: 14px;
  color: var(--auth-muted);
  text-align: center;
  line-height: 1.5;
  margin-top: -12px;
}

/* App mockup card */
.auth-logon-mockup {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(15,27,61,0.10), 0 1px 4px rgba(15,27,61,0.05);
  overflow: hidden;
  width: 100%;
  max-width: 380px;
}

.auth-mock-course-hdr {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 18px 14px;
  border-bottom: 1px solid #F0F4FF;
}

.auth-mock-course-ico {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: #EEF3FF;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--auth-blue);
}
.auth-mock-course-ico svg { width: 22px; height: 22px; }

.auth-mock-course-info { flex: 1; }
.auth-mock-course-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--auth-text);
  margin-bottom: 2px;
}
.auth-mock-course-num {
  font-size: 12px;
  font-weight: 600;
  color: var(--auth-blue);
  margin-bottom: 2px;
}
.auth-mock-course-topic {
  font-size: 12px;
  color: var(--auth-muted);
}
.auth-mock-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  color: var(--auth-green);
  background: var(--auth-green-soft);
  border-radius: 20px;
  padding: 4px 10px;
  white-space: nowrap;
  flex-shrink: 0;
}
.auth-mock-badge svg { width: 13px; height: 13px; }

/* Mockup menu items */
.auth-mock-items { padding: 4px 0; }

.auth-mock-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 18px;
  border-bottom: 1px solid #F8F9FC;
  transition: background 0.12s;
}
.auth-mock-item:last-child { border-bottom: none; }
.auth-mock-item:hover { background: #F8FAFF; }

.auth-mock-item-ico {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.auth-mock-item-ico svg { width: 17px; height: 17px; }

.auth-mock-item-ico--blue   { background: #DBEAFE; color: #1D4ED8; }
.auth-mock-item-ico--purple { background: #F3E8FF; color: #7C3AED; }
.auth-mock-item-ico--green  { background: #DCFCE7; color: #16A34A; }
.auth-mock-item-ico--orange { background: #FFF7ED; color: #F97316; }
.auth-mock-item-ico--rose   { background: #FFF1F2; color: #E11D48; }

.auth-mock-item-text { flex: 1; }
.auth-mock-item-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--auth-text);
  margin-bottom: 1px;
}
.auth-mock-item-sub {
  font-size: 11px;
  color: var(--auth-muted);
}

.auth-mock-chevron {
  color: #CBD5E1;
  flex-shrink: 0;
}
.auth-mock-chevron svg { width: 14px; height: 14px; }

/* ─── 8. FEATURE STRIP (below login card) ────────────────────────── */
.auth-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  padding: 0 40px;
}

.auth-strip-card {
  background: #fff;
  border-radius: 14px;
  padding: 18px 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  box-shadow: 0 2px 8px rgba(15,27,61,0.05);
}

.auth-strip-ico {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.auth-strip-ico svg { width: 22px; height: 22px; }
.auth-strip-ico--blue   { background: #DBEAFE; color: #1D4ED8; }
.auth-strip-ico--green  { background: #DCFCE7; color: #16A34A; }
.auth-strip-ico--orange { background: #FFF7ED; color: #F97316; }

.auth-strip-text h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--auth-text);
  margin-bottom: 4px;
}
.auth-strip-text p {
  font-size: 12px;
  color: var(--auth-muted);
  line-height: 1.5;
}

/* ─── 9. AUTH FOOTER ─────────────────────────────────────────────── */
.auth-footer {
  text-align: center;
  font-size: 12px;
  color: var(--auth-muted);
  padding: 18px 0 24px;
}

/* ─── 10. RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 860px) {
  .auth-card {
    grid-template-columns: 1fr;
    max-width: 480px;
  }
  .auth-mkt-side    { display: none; }
  .auth-logon-mkt   { display: none; }
  .auth-topbar      { padding: 16px 20px; }
  .auth-center      { padding: 12px 16px 24px; }
  .auth-form-side   { padding: 32px 24px; }
  .auth-strip       { grid-template-columns: 1fr; padding: 0 16px; }
}
