:root {
    --blue: #14B8A6;
    --blue-deep: #061420;
    --blue-mid: #0E7490;
    --blue-pale: #E6F7F7;
    --teal: #14B8A6;
    --teal-dark: #0F766E;
    --teal-light: #5EEAD4;
    --cyan: #06B6D4;
    --cyan-light: #67E8F9;
    --sky: #38BDF8;
    --gray: #9BA3A6;
    --gray-light: #C9CFD1;
    --paper: #FFFFFF;
    --paper-tint: #F8FAFC;
    --ink: #0F172A;
    --ink-soft: #475569;
    --line: #E2E8F0;
}

html, body {
    height: 100%;
    margin: 0;
}

body {
    font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--ink);
    background: var(--paper-tint);
}

.auth-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 52fr 48fr;
}

/* ==========================================================================
   LEFT PANEL: Brand, story, who it's for, journey
   ========================================================================== */
.auth-brand {
    position: relative;
    background: radial-gradient(circle at 10% 15%, rgba(20, 184, 166, 0.18) 0%, transparent 40%),
                radial-gradient(circle at 90% 85%, rgba(14, 116, 144, 0.20) 0%, transparent 45%),
                linear-gradient(155deg, #05131E 0%, #082032 50%, #030D15 100%);
    color: #E2E8F0;
    padding: 44px 52px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow-y: auto;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.auth-brand-top {
    max-width: 580px;
}

.auth-brand-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 26px;
}

.auth-brand-icon {
    width: 42px;
    height: 42px;
    border-radius: 11px;
    background: linear-gradient(135deg, #14B8A6 0%, #06B6D4 100%);
    color: #061420;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 16px rgba(20, 184, 166, 0.25);
    flex-shrink: 0;
}

.auth-brand-icon svg {
    width: 22px;
    height: 22px;
}

.auth-wordmark {
    display: inline-block;
    font-family: 'Space Grotesk', -apple-system, sans-serif;
    font-weight: 700;
    font-size: 23px;
    letter-spacing: -0.5px;
    color: #FFFFFF;
    text-decoration: none;
    line-height: 1.1;
}

.auth-wordmark-accent {
    color: var(--teal-light);
    font-weight: 800;
}

.auth-tagline {
    font-size: 12.5px;
    color: #94A3B8;
    margin: 2px 0 0;
    font-weight: 500;
}

/* Main story: centred vertically so the panel never shows a dead band. */
.auth-story {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 560px;
    padding: 28px 0;
}

.auth-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--teal-light);
    font-weight: 600;
    margin-bottom: 14px;
}

.auth-eyebrow::before {
    content: "";
    width: 18px;
    height: 2px;
    background: var(--teal-light);
    border-radius: 2px;
}

.auth-lead {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 38px;
    line-height: 1.12;
    margin: 0 0 14px;
    color: #FFFFFF;
    letter-spacing: -0.01em;
}

.auth-lead-gradient {
    background: linear-gradient(90deg, #5EEAD4 0%, #67E8F9 50%, #38BDF8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.auth-lead-sub {
    font-size: 16px;
    line-height: 1.55;
    color: #B6C3D4;
    margin: 0 0 30px;
}

/* Who it's for: plain information rows (not buttons). */
.auth-audiences {
    list-style: none;
    padding: 0;
    margin: 0 0 30px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.auth-audience {
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: 14px;
    align-items: start;
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.auth-audience-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.auth-audience-icon.founder { background: rgba(244, 114, 182, 0.12); color: #F9A8D4; }
.auth-audience-icon.community { background: rgba(251, 191, 36, 0.12); color: #FCD34D; }
.auth-audience-icon.team { background: rgba(56, 189, 248, 0.12); color: #7DD3FC; }

.auth-audience-title {
    font-weight: 600;
    color: #F1F5F9;
    font-size: 15px;
}

.auth-audience-desc {
    font-size: 13.5px;
    color: #94A3B8;
    margin-top: 2px;
    line-height: 1.45;
}

/* Journey: Assess → Plan → Connect → Launch */
.auth-journey {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    font-size: 12.5px;
    color: #94A3B8;
}

.auth-journey li {
    display: flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
}

.auth-journey li i {
    color: var(--teal-light);
}

.auth-journey li + li::before {
    content: "";
    flex: 1;
    width: 40px;
    height: 1px;
    margin: 0 10px;
    background: linear-gradient(90deg, rgba(94, 234, 212, 0.5), rgba(94, 234, 212, 0.1));
}

.auth-footer-clean {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 12.5px;
    color: #7C8BA1;
    gap: 12px;
    flex-wrap: wrap;
}

.auth-footer-clean strong {
    color: #CBD5E1;
}

.auth-footer-clean i {
    color: var(--teal-light);
    margin-right: 5px;
}

/* ==========================================================================
   RIGHT PANEL: Sign-in Card & Compact Pathways
   ========================================================================== */
.auth-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 36px;
    background: #FFFFFF;
    overflow-y: auto;
}

.auth-card {
    width: 100%;
    max-width: 420px;
}

.auth-card:has(#companyApplicationForm) {
    max-width: 640px;
}

.auth-card-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
}

.auth-card-brand {
    display: flex;
    align-items: center;
    gap: 8px;
}

.auth-mini-logo {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    background: linear-gradient(135deg, #0F766E 0%, #0E7490 100%);
    color: #FFFFFF;
    font-size: 11px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: -0.5px;
}

.auth-card-brand-name {
    font-weight: 700;
    font-size: 14.5px;
    color: var(--ink);
    letter-spacing: -0.2px;
}

.auth-logo-img {
    display: block;
    height: 24px;
    width: auto;
}

.auth-header-group h2 {
    font-family: 'Space Grotesk', -apple-system, sans-serif;
    font-weight: 700;
    font-size: 23px;
    margin: 0 0 4px;
    color: var(--ink);
    letter-spacing: -0.02em;
}

.auth-header-group .sub {
    font-size: 13px;
    color: var(--ink-soft);
    margin: 0 0 20px;
}

.form-label {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 5px;
}

.input-icon-group {
    position: relative;
}

.input-icon-group .form-control {
    padding-right: 36px;
}

.input-icon-group .input-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #94A3B8;
    pointer-events: none;
    font-size: 14px;
}

.form-control {
    border: 1.5px solid var(--line);
    border-radius: 9px;
    padding: 10px 13px;
    font-size: 13.5px;
    color: var(--ink);
    transition: all 0.15s ease;
    background: #FFFFFF;
}

.form-control:focus {
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.15);
    outline: none;
}

.password-field {
    position: relative;
}

.password-field .form-control {
    padding-right: 42px;
}

.password-toggle-btn {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: #64748B;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    cursor: pointer;
    transition: color 0.15s ease;
}

.password-toggle-btn:hover {
    color: var(--ink);
}

.form-check-input {
    border-radius: 4px;
    border: 1.5px solid #CBD5E1;
    cursor: pointer;
}

.form-check-input:checked {
    background-color: var(--teal);
    border-color: var(--teal);
}

.auth-link-subtle {
    font-size: 12px;
    color: var(--teal-dark);
    font-weight: 600;
    text-decoration: none;
}

.auth-link-subtle:hover {
    color: var(--teal);
    text-decoration: underline;
}

.auth-session-badge {
    font-size: 11px;
    color: #64748B;
    font-family: monospace;
}

.btn-primary,
.btn-primary.btn-submit-auth {
    --bs-btn-bg: #0F766E;
    --bs-btn-border-color: #0F766E;
    --bs-btn-hover-bg: #115E59;
    --bs-btn-hover-border-color: #115E59;
    --bs-btn-active-bg: #115E59;
    --bs-btn-active-border-color: #115E59;
    --bs-btn-disabled-bg: #94A3B8;
    --bs-btn-disabled-border-color: #94A3B8;
    background: linear-gradient(135deg, #0F766E 0%, #0E7490 100%) !important;
    border: none !important;
    border-radius: 9px !important;
    padding: 11px 16px !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    color: #FFFFFF !important;
    box-shadow: 0 4px 10px rgba(15, 118, 110, 0.22) !important;
    transition: all 0.18s ease !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary.btn-submit-auth:hover {
    background: linear-gradient(135deg, #115E59 0%, #155E75 100%) !important;
    box-shadow: 0 6px 14px rgba(15, 118, 110, 0.32) !important;
    transform: translateY(-1px);
    color: #FFFFFF !important;
}

.btn-primary:disabled,
.btn-primary[disabled] {
    background: #94A3B8 !important;
    box-shadow: none !important;
    transform: none !important;
    opacity: 0.65;
    cursor: not-allowed;
}

/* ==========================================================================
   COMPACT ECOSYSTEM PATHWAYS
   ========================================================================== */
.auth-pathways-compact {
    margin-top: 22px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

.pathways-divider {
    text-align: center;
    margin-bottom: 10px;
}

.pathways-divider span {
    font-size: 11px;
    font-weight: 600;
    color: #64748B;
    background: #FFFFFF;
    padding: 0 8px;
}

.pathways-action-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.pathway-chip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 8px 6px;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: #F8FAFC;
    text-decoration: none;
    transition: all 0.15s ease;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--ink);
    white-space: nowrap;
}

.pathway-chip:hover {
    background: #FFFFFF;
    border-color: var(--teal);
    color: var(--teal-dark);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    text-decoration: none;
    transform: translateY(-1px);
}

.chip-icon {
    font-size: 13px;
    flex-shrink: 0;
}

.chip-text {
    overflow: hidden;
    text-overflow: ellipsis;
}

.chip-arrow {
    font-size: 10px;
    color: #94A3B8;
}

.pathway-chip:hover .chip-arrow {
    color: var(--teal-dark);
}

.auth-resend-clean {
    text-align: center;
    margin-top: 12px;
    font-size: 11.5px;
}

.auth-resend-clean a {
    color: #64748B;
    text-decoration: none;
}

.auth-resend-clean a span {
    text-decoration: underline;
    color: var(--teal-dark);
    font-weight: 600;
}

.auth-resend-clean a:hover span {
    color: var(--teal);
}

/* Common form elements for other auth views */
.auth-eyebrow {
    display: block;
    color: var(--teal-dark);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.application-section {
    display: flex;
    align-items: end;
    gap: 12px;
}

.application-step {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--blue-pale);
    color: var(--teal-dark);
    font-weight: 700;
    margin-bottom: 7px;
}

.application-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--ink-soft);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    margin: 22px 0 14px;
}

.application-divider::before, .application-divider::after {
    content: "";
    height: 1px;
    background: var(--line);
    flex: 1;
}

.application-note {
    display: flex;
    gap: 9px;
    margin: 18px 0 14px;
    padding: 11px 12px;
    border-radius: 10px;
    background: var(--blue-pale);
    color: var(--blue-mid);
    font-size: 13px;
}

.apply-cta, .auth-switch {
    text-align: center;
    margin: 22px 0 0;
    color: var(--ink-soft);
    font-size: 13.5px;
}

.apply-cta a, .auth-switch a {
    margin-left: 5px;
    font-weight: 600;
    color: var(--teal-dark);
    text-decoration: none;
}

.apply-cta a:hover, .auth-switch a:hover {
    text-decoration: underline;
    color: var(--teal);
}

.phone-input-group {
    display: flex;
    gap: 8px;
}

.phone-input-group .phone-country-code {
    flex: 0 0 96px;
    padding-left: 10px;
    padding-right: 6px;
}

.phone-input-group input {
    flex: 1 1 auto;
    min-width: 0;
}

.page-enter {
    animation: fadeUp 0.28s ease;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 991.98px) {
    .auth-shell {
        grid-template-columns: 1fr;
    }
    .auth-brand {
        padding: 28px 24px;
        min-height: auto;
    }
    .auth-story {
        padding: 22px 0 6px;
    }
    .auth-lead {
        font-size: 30px;
    }
    .auth-audiences,
    .auth-journey {
        display: none;
    }
    .auth-footer-clean {
        margin-top: 16px;
    }
    .auth-panel {
        padding: 28px 20px 48px;
    }
}

@media (max-width: 480px) {
    .pathways-action-row {
        grid-template-columns: 1fr;
    }
}
