:root {
    --g0: #0a400c;
    --g1: #0d5210;
    --g2: #0a400c;
    --g3: #819067;
    --g4: #b1ab86;
    --g5: #d4ceb8;
    --g6: #ede9d8;
    --e0: #fefae0;
    --e1: #b1ab86;
    --s0: #fefae0;
    --s2: #b1ab86;
    --ink: #0a400c;
    --muted: #819067;
    --white: #ffffff;
    --r8: 8px;
    --r16: 16px;
    --r24: 24px;
    --r999: 999px;
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

html {
    font-size: 16px;
}

body {
    min-height: 100vh;
    margin: 0;
    background-color: var(--g0);
    background-image: url("../img/signup.png");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    font-family: "Satoshi", "Cabinet Grotesk", system-ui, sans-serif;
    color: var(--white);
    overflow-x: hidden;
    font-size: 1rem;
    line-height: 1.6;
}

/* ── Layout ── */
.auth-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 2rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 3.5rem;
    position: relative;
}

.auth-page.register {
    grid-template-columns: 1fr 1.6fr;
    max-width: 1300px;
}

/* dark overlay so text stays readable over the background image */
.auth-page::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: rgba(5, 20, 6, 0.55);
}

.auth-hero {
    position: relative;
    z-index: 2;
    background: none;
    border: none;
    border-radius: 0;
    padding: 0;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.auth-card {
    position: relative;
    z-index: 2;
    background: rgba(10, 64, 12, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--r24);
    padding: 3rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* ── Hero side ── */
.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(99, 112, 75, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--e0);
    padding: 0.35rem 1rem;
    border-radius: var(--r999);
    margin-bottom: 1.75rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    backdrop-filter: blur(6px);
}

.eyebrow-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--e1);
    animation: blink 2s ease infinite;
}

@keyframes blink {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.3;
    }
}

.auth-hero h1 {
    font-family: "Fraunces", Georgia, serif;
    font-weight: 700;
    font-size: clamp(2.8rem, 5vw, 4.5rem);
    line-height: 1;
    letter-spacing: -0.02em;
    color: var(--white);
    margin-bottom: 1.25rem;
}

.auth-hero h1 em {
    color: var(--e1);
    font-style: italic;
    font-weight: 300;
}

.auth-subtitle {
    font-size: 1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.925);
    max-width: 380px;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}

/* stat pills */
.auth-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-top: 2rem;
}

.stat-pill {
    background: rgba(99, 112, 75, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.621);
    border-radius: var(--r16);
    padding: 1rem 1.25rem;
    backdrop-filter: blur(8px);
    transition:
        border-color 0.2s,
        background 0.2s;
}

.stat-pill:hover {
    border-color: rgba(255, 255, 255, 0.35);
    background: rgba(10, 64, 12, 0.65);
}

.stat-num {
    font-family: "Fraunces", Georgia, serif;
    font-size: 1.65rem;
    font-weight: 700;
    color: var(--e1);
    line-height: 1;
    letter-spacing: -0.04em;
}

.stat-desc {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 0.3rem;
    line-height: 1.4;
}

/* ── Card side ── */
.auth-card {
    background: rgba(99, 112, 75, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--r24);
    padding: 2.5rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.card-eyebrow {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--e1);
    margin-bottom: 0.5rem;
}

.auth-card h2 {
    font-family: "Fraunces", Georgia, serif;
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--white);
    margin-bottom: 0.4rem;
    line-height: 1.1;
}

.auth-card-subtitle {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.893);
    margin-bottom: 2rem;
    line-height: 1.5;
}

.fg input,
.auth-form input[type="email"],
.auth-form input[type="password"],
.auth-form input[type="text"],
.auth-form textarea,
.auth-form select,
.auth-form input[type="file"] {
    width: 100%;
    padding: 0.85rem 1.1rem;
    background: var(--s0);
    border: 1.5px solid var(--s2);
    border-radius: var(--r16);
    color: var(--ink);
    font-family: "Satoshi", "Cabinet Grotesk", sans-serif;
    font-size: 0.95rem;
    font-weight: 400;
    outline: none;
    transition:
        border-color 0.2s,
        box-shadow 0.2s,
        background 0.2s;
}

.auth-form input:hover,
.auth-form textarea:hover,
.auth-form select:hover,
.fg input:hover,
.fg select:hover {
    border-color: var(--g5);
}

.auth-form input:focus,
.auth-form textarea:focus,
.auth-form select:focus,
.fg input:focus,
.fg select:focus {
    border-color: var(--g);
    background: var(--s2);
    box-shadow: 0 0 0 3px rgba(10, 64, 12, 0.1);
}

.auth-form input::placeholder,
.auth-form textarea::placeholder,
.auth-form select::placeholder,
.fg input::placeholder,
.fg select::placeholder {
    color: var(--muted);
    opacity: 0.6;
}

/* labels to match enquiry form */
.auth-form label,
.fg label {
    display: block;
    font-family: "Cabinet Grotesk", sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--g6);
    margin-bottom: 0.5rem;
}

.auth-form .input {
    margin-bottom: 1.25rem;
}

.auth-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

/* ── Login button ── */
.button.auth-primary-btn,
.auth-primary-btn.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.75rem 1.5rem;
    background: #2e3523;
    color: var(--e0);
    border: none;
    border-radius: var(--r16);
    font-family: inherit;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: -0.01em;
    cursor: pointer;
    margin-top: 0.5rem;
    box-shadow: 0 4px 16px rgba(10, 64, 12, 0.25);
    transition:
        transform 0.18s var(--ease-spring),
        background 0.18s,
        box-shadow 0.18s;
}

.button.auth-primary-btn:hover,
.auth-primary-btn.button:hover {
    background: var(--g1);
    box-shadow: 0 8px 24px rgba(10, 64, 12, 0.35);
    transform: translateY(-2px);
}

/* ── Links ── */
.auth-links {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.auth-links a {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    padding: 0.3rem 0;
    transition: color 0.2s;
}

.auth-links a:hover {
    color: var(--e1);
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .auth-page {
        grid-template-columns: 1fr;
        padding: 2rem 1.5rem;
        gap: 2rem;
    }
    .auth-stats {
        display: none;
    }
    .auth-hero h1 {
        font-size: 2.6rem;
    }
}

.auth-steps {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 2rem;
}

.auth-step {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: rgba(99, 112, 75, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--r16);
    padding: 14px 16px;
    backdrop-filter: blur(8px);
    transition:
        border-color 0.2s,
        background 0.2s;
}

.auth-step:hover {
    border-color: rgba(255, 255, 255, 0.35);
    background: rgba(99, 112, 75, 0.6);
}

.step-num {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: var(--e0);
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.step-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--white);
    line-height: 1.2;
}

.step-desc {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.85);
    margin-top: 3px;
    line-height: 1.4;
}

.auth-form .error-message {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: #ff6b6b;
    margin-top: 0.4rem;
    padding: 0.4rem 0.75rem;
    background: rgba(255, 80, 80, 0.08);
    border: 1px solid rgba(255, 80, 80, 0.2);
    border-radius: var(--r8);
    line-height: 1.4;
}

.auth-form .input.error input {
    border-color: rgba(255, 80, 80, 0.5);
    background: rgba(255, 248, 248, 0.95);
    box-shadow: 0 0 0 3px rgba(255, 80, 80, 0.1);
}

.auth-form .input.error label {
    color: #ff6b6b;
}

.auth-form .auth-grid .input.error .error-message {
    white-space: normal;
    width: 100%;
}

.auth-form .auth-grid {
    align-items: start;
}
