/*
 * auth.css — shared stylesheet for all auth / registration pages
 *
 * To customize the accent colour on a specific page, set the variable
 * in a small <style> block BEFORE this stylesheet is loaded:
 *   :root { --ap-accent: #059669; --ap-accent-rgb: 5,150,105; }
 */

/* ── Defaults ───────────────────────────────────────────── */
:root {
  --ap-accent:      #4F6EF7;
  --ap-accent-rgb:  79,110,247;
  --ap-navy:        #0D1B4B;
  --ap-navy-hover:  #1a2d6b;
  --ap-gray:        #64748B;
  --ap-border:      #E2E8F0;
  --ap-bg:          linear-gradient(160deg, #ffffff 0%, #EEF2FF 100%);
  /* ── Typography — keep in sync with design.css ── */
  --font-body:    'Inter', sans-serif;
  --font-display: 'Poppins', sans-serif;
  --font-serif:   'Cormorant Garant', Georgia, serif;
}

/* ── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── Page ───────────────────────────────────────────────── */
body {
  font-family: var(--font-body);
  background: var(--ap-bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

.ap-page {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 24px 72px;
}

/* ── Card ───────────────────────────────────────────────── */
.ap-card {
  background: #ffffff;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(13,27,75,0.07), 0 1px 4px rgba(13,27,75,0.04);
  width: 100%;
  max-width: 460px;
  overflow: hidden;
}

.ap-card--wide  { max-width: 880px; }
.ap-card--narrow { max-width: 420px; }

.ap-card-header {
  padding: 36px 36px 28px;
  border-bottom: 1px solid #F3F4F6;
  text-align: center;
}

.ap-card-body { padding: 30px 36px 36px; }

/* Flat card (no header/body split) */
.ap-card--flat { padding: 40px 36px 44px; }

/* ── Icon circle ────────────────────────────────────────── */
.ap-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: rgba(var(--ap-accent-rgb), 0.1);
  color: var(--ap-accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  margin: 0 auto 14px;
}

/* ── Eyebrow ────────────────────────────────────────────── */
.ap-eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11.5px; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--ap-accent);
  margin-bottom: 14px;
}
.ap-eyebrow::before {
  content: '';
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--ap-accent);
}

/* ── Heading ────────────────────────────────────────────── */
.ap-title {
  font-family: var(--font-display);
  font-size: 21px; font-weight: 700;
  color: var(--ap-navy);
  margin-bottom: 6px;
}

.ap-sub {
  font-size: 13.5px;
  color: var(--ap-gray);
  line-height: 1.6;
  margin-bottom: 0;
}

/* ── Form ───────────────────────────────────────────────── */
.ap-field { margin-bottom: 16px; }

.ap-label {
  display: block;
  font-size: 13px; font-weight: 500;
  color: #374151;
  margin-bottom: 5px;
}

/* Checkbox field (e.g. Terms / NDA consent) — uses .ap-field, no separate modifier needed */
.ap-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 13.5px; font-weight: 500;
  color: #374151;
  line-height: 1.6;
  cursor: pointer;
}
.ap-checkbox-label input[type="checkbox"] {
  flex-shrink: 0;
  width: 16px; height: 16px;
  margin-top: 2px;
  accent-color: var(--ap-accent);
  cursor: pointer;
}
.ap-checkbox-label a {
  color: var(--ap-accent);
  font-weight: 600;
  text-decoration: none;
}
.ap-checkbox-label a:hover { text-decoration: underline; }

.ap-input {
  width: 100%;
  padding: 10px 13px;
  border: 1.5px solid var(--ap-border);
  border-radius: 7px;
  font-family: var(--font-body);
  font-size: 14px; color: #111827;
  background: #fff;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.ap-input:focus {
  border-color: var(--ap-accent);
  box-shadow: 0 0 0 3px rgba(var(--ap-accent-rgb), 0.1);
}
.ap-input::placeholder { color: #CBD5E1; }

.ap-input--otp {
  text-align: center;
  font-size: 26px; letter-spacing: 10px; font-weight: 700;
  padding: 12px;
}

/* ── Buttons ────────────────────────────────────────────── */
.ap-submit {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  width: 100%; padding: 12px;
  background: var(--ap-navy);
  color: #fff; border: none; border-radius: 8px;
  font-family: var(--font-display); font-size: 14px; font-weight: 600;
  cursor: pointer; margin-top: 4px;
  box-shadow: 0 2px 8px rgba(13,27,75,0.18);
  transition: background 0.13s, box-shadow 0.13s;
}
.ap-submit:hover { background: var(--ap-navy-hover); box-shadow: 0 4px 14px rgba(13,27,75,0.28); }

/* Accent-coloured submit (company=blue, mentor=green, investor=amber) */
.ap-submit--accent {
  background: var(--ap-accent);
  box-shadow: 0 2px 8px rgba(var(--ap-accent-rgb), 0.25);
}
.ap-submit--accent:hover {
  opacity: 0.9;
  box-shadow: 0 4px 14px rgba(var(--ap-accent-rgb), 0.35);
}

/* ── Alerts ─────────────────────────────────────────────── */
.ap-alert {
  padding: 10px 13px;
  border-radius: 7px;
  font-size: 13px; line-height: 1.5;
  margin-bottom: 18px;
}
.ap-alert i { margin-right: 5px; }

.ap-alert--error {
  color: #DC2626;
  background: #FEF2F2;
  border: 1px solid #FECACA;
}
.ap-alert--success {
  color: #065F46;
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
}

/* ── Footer links ───────────────────────────────────────── */
.ap-links {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  margin-top: 18px;
}
.ap-links a {
  font-size: 13px; color: var(--ap-accent); text-decoration: none;
}
.ap-links a:hover { text-decoration: underline; }

.ap-footer-note {
  font-size: 13px; color: var(--ap-gray);
  text-align: center;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #F3F4F6;
}
.ap-footer-note a {
  color: var(--ap-navy); font-weight: 600; text-decoration: none;
}
.ap-footer-note a:hover { text-decoration: underline; }

.ap-trust {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; color: #9CA3AF;
  margin-top: 28px; padding-top: 20px;
  border-top: 1px solid #F3F4F6;
}
.ap-trust i { font-size: 11px; color: #C7D2FE; }

/* ── 2-column layout (login.php) ────────────────────────── */
.ap-cols {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
}
.ap-inner-divider {
  border: none;
  border-top: 1px dashed #C7D2FE;
  margin: 28px 0;
}
.ap-col-divider {
  background: repeating-linear-gradient(
    to bottom,
    #C7D2FE 0px, #C7D2FE 5px,
    transparent 5px, transparent 11px
  );
  width: 1px;
}
.ap-col { padding: 36px 30px 44px; }
.ap-col-title {
  font-family: var(--font-display);
  font-size: 12px; font-weight: 600; color: #94A3B8;
  text-align: center; letter-spacing: 0.8px; text-transform: uppercase;
  margin-bottom: 26px;
}

/* ── Social/quick-access buttons ────────────────────────── */
.ap-social { display: flex; flex-direction: column; gap: 10px; }
.ap-social-btn {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 15px; border-radius: 8px;
  font-family: var(--font-body); font-size: 13.5px; font-weight: 600;
  color: #ffffff; text-decoration: none; border: none;
  width: 100%; cursor: pointer;
  transition: opacity 0.15s, transform 0.1s;
}
.ap-social-btn:hover { opacity: 0.88; transform: translateY(-1px); }
.ap-sb-icon {
  width: 24px; height: 24px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.2); border-radius: 4px; font-size: 13px;
}
.ap-btn-linkedin { background: #0077B5; }
.ap-btn-navy     { background: var(--ap-navy); }

.ap-social-note {
  font-size: 12px; color: #94A3B8; text-align: center;
  margin-top: 20px; line-height: 1.6;
}

/* ── Login email col helpers ────────────────────────────── */
.ap-form-meta {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 20px; gap: 10px;
}
.ap-forgot { font-size: 13px; color: var(--ap-accent); text-decoration: none; white-space: nowrap; }
.ap-forgot:hover { text-decoration: underline; }

.ap-submit--inline {
  width: auto; padding: 9px 20px; font-size: 13.5px; margin-top: 0;
}

/* ── Create account column ──────────────────────────────── */
.ap-create-note {
  font-size: 13px; color: var(--ap-gray); text-align: center;
  margin-bottom: 22px; line-height: 1.6;
}
.ap-get-started {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 12px;
  background: var(--ap-navy); color: #fff; border-radius: 8px;
  font-family: var(--font-display); font-size: 14px; font-weight: 600;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(13,27,75,0.18);
  transition: background 0.13s, box-shadow 0.13s;
}
.ap-get-started:hover { background: var(--ap-navy-hover); box-shadow: 0 4px 14px rgba(13,27,75,0.28); }

/* ── Logo size — ONE value controls every nav instance ─── */
/* Change --logo-h here; it propagates to both auth nav and app nav */
:root { --logo-h: 66px; }
.an-logo img { height: var(--logo-h); }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 680px) {
  .ap-cols { grid-template-columns: 1fr; }
  .ap-col-divider {
    width: auto; height: 1px;
    background: repeating-linear-gradient(
      to right,
      #C7D2FE 0px, #C7D2FE 5px,
      transparent 5px, transparent 11px
    );
  }
  .ap-col { padding: 28px 24px; }
  .ap-card--flat { padding: 32px 24px 36px; }
  .ap-card-header { padding: 28px 24px 22px; }
  .ap-card-body   { padding: 24px 24px 28px; }
}
