/* ==========================================
   PRIMEFORGE AUTH - SPLIT SCREEN SYSTEM
   HIGH-CONTRAST DARK THEME (CLAUDE-INSPIRED)
========================================== */

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

:root {
    --auth-bg: #000000;
    --auth-surface: #0A0A0A;
    --auth-surface-2: #121212;
    --auth-surface-3: #181818;

    --auth-border: #222226;
    --auth-border-strong: #303036;

    --auth-text: #FFFFFF;
    --auth-muted: #8B8B92;
    --auth-subtle: #5F5F66;

    --auth-danger: #FF4D4D;
}

/* ==========================================
   BASE
========================================== */

html,
body {
    min-height: 100%;
}

body {
    min-height: 100vh;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--auth-bg);
    color: var(--auth-text);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* ==========================================
   AUTH SHELL
========================================== */

.auth-container {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(420px, .85fr);
    min-height: 100vh;
    width: 100%;
}

/* ==========================================
   LEFT PANEL (WITH PHOTO & BRANDING)
========================================== */

.auth-left {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    /* Pulled content higher up */
    gap: 20px;
    padding: 32px 64px;
    /* Reduced top padding to shift .jpg and text higher */
    background: var(--auth-bg);
    border-right: 1px solid var(--auth-border);
    overflow: hidden;
}

/* subtle structural grid */
.auth-left::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, .025) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, .025) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
}

/* DELETED PRIMEFORGE / AUTH PSEUDO-ELEMENT HERE */

/* ==========================================
   BRAND
========================================== */

.brand {
    position: relative;
    z-index: 2;
    margin-top: 0;
}

.brand h1 {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--auth-text);
    font-size: 32px;
    line-height: 1.1;
    font-weight: 750;
    letter-spacing: -.03em;
}

.brand h1 span {
    color: var(--auth-text);
}

.brand h1 i {
    color: var(--auth-muted);
    font-size: 24px;
}

.tagline {
    margin-top: 6px;
    color: var(--auth-muted);
    font-size: 10px;
    font-weight: 650;
    letter-spacing: .14em;
    text-transform: uppercase;
}

/* ==========================================
   HERO TEXT & PHOTO DISPLAY
========================================== */

.hero-text {
    position: relative;
    z-index: 2;
    max-width: 620px;
    margin-top: 10px;
    /* Reduced to bring image closer */
}

.hero-text h2 {
    color: var(--auth-text);
    font-size: clamp(26px, 2.8vw, 36px);
    line-height: 1.15;
    font-weight: 750;
    letter-spacing: -.03em;
}

.hero-text p {
    margin-top: 8px;
    color: var(--auth-muted);
    font-size: 13px;
    line-height: 1.5;
}

/* UNCUT FULL IMAGE CONTAINER - MOVED UP */
.auth-hero-image-container {
    position: relative;
    z-index: 2;
    width: 100%;
    margin-top: 10px;
    /* Keeps .jpg file tight with hero header */
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    overflow: hidden;
    background: #0D0D10;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-hero-image-container img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    border-radius: 12px;
}

/* ==========================================
   RIGHT PANEL
========================================== */

.auth-right {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px;
    background: var(--auth-surface);
}

/* ==========================================
   AUTH CARD
========================================== */

.auth-card {
    width: 100%;
    max-width: 440px;
    padding: 32px 32px;
    background: var(--auth-surface-2);
    border: 1px solid var(--auth-border);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* ==========================================
   HEADINGS
========================================== */

.auth-card h2 {
    color: var(--auth-text);
    font-size: 26px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -.025em;
}

.subtitle {
    margin-top: 6px;
    margin-bottom: 20px;
    color: var(--auth-muted);
    font-size: 12px;
    line-height: 1.5;
}

/* ==========================================
   GOOGLE BUTTON
========================================== */

.google-btn {
    position: relative;
    width: 100%;
    padding: 12px 14px;
    background: #FFFFFF;
    color: #000000;
    border: 1px solid #D9D9D9;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .02em;
    transition: background-color .16s ease, border-color .16s ease;
}

.google-btn:hover {
    background: #EDEDED;
    border-color: #FFFFFF;
}

.google-btn i {
    margin-right: 8px;
}

.google-btn small {
    display: block;
    margin-top: 3px;
    color: #666666;
    font-size: 9px;
    font-weight: 600;
}

/* ==========================================
   DIVIDER
========================================== */

.divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 16px 0;
    color: var(--auth-subtle);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .14em;
}

.divider::before,
.divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--auth-border);
}

/* ==========================================
   FORM
========================================== */

.input-group {
    margin-bottom: 14px;
}

.input-group label {
    display: block;
    margin-bottom: 6px;
    color: var(--auth-muted);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.input-group input {
    width: 100%;
    padding: 11px 13px;
    background: var(--auth-bg);
    color: var(--auth-text);
    border: 1px solid var(--auth-border);
    border-radius: 4px;
    outline: none;
    font-size: 13px;
    transition: background-color .16s ease, border-color .16s ease;
}

.input-group input:hover {
    border-color: var(--auth-border-strong);
}

.input-group input:focus {
    background: var(--auth-surface-3);
    border-color: var(--auth-text);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, .08);
}

.input-group input::placeholder {
    color: var(--auth-subtle);
}

/* ==========================================
   PRIMARY AUTH BUTTON
========================================== */

.signup-btn {
    width: 100%;
    margin-top: 10px;
    padding: 12px 14px;
    background: var(--auth-text);
    color: var(--auth-bg);
    border: 1px solid var(--auth-text);
    border-radius: 4px;
    cursor: pointer;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    transition: background-color .16s ease, color .16s ease, border-color .16s ease;
}

.signup-btn:hover {
    background: #EAEAEA;
    border-color: #EAEAEA;
}

.signup-btn:disabled {
    opacity: .55;
    cursor: not-allowed;
}

/* ==========================================
   ACCOUNT SWITCH (REGISTRATION LINK MOVED UP)
========================================== */

.switch-auth {
    margin-top: 12px;
    /* Tightened from 20px to move registration prompt up */
    color: var(--auth-muted);
    text-align: center;
    font-size: 11px;
}

.switch-auth a {
    color: var(--auth-text);
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 700;
}

.switch-auth a:hover {
    color: var(--auth-muted);
}

/* ==========================================
   FAQ ACCORDION SECTION (CLAUDE-INSPIRED)
========================================== */

.pf-faq-section {
    background: var(--auth-bg);
    border-top: 1px solid var(--auth-border);
    padding: 64px 24px;
}

.pf-faq-container {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

.pf-faq-item {
    border-bottom: 1px solid var(--auth-border);
}

.pf-faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    background: transparent;
    border: none;
    color: var(--auth-text);
    font-size: 18px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: color 0.2s ease;
}

.pf-faq-question:hover {
    color: var(--auth-muted);
}

.pf-faq-icon {
    font-size: 14px;
    color: var(--auth-muted);
    transition: transform 0.3s ease;
}

.pf-faq-item.active .pf-faq-icon {
    transform: rotate(90deg);
}

.pf-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0, 1, 0, 1), padding 0.3s ease;
}

.pf-faq-item.active .pf-faq-answer {
    max-height: 300px;
    padding-bottom: 24px;
    transition: max-height 0.3s ease-in-out;
}

.pf-faq-answer p {
    color: var(--auth-muted);
    font-size: 14px;
    line-height: 1.6;
}

/* ==========================================
   MULTI-COLUMN FOOTER (CLAUDE-INSPIRED)
========================================== */

.pf-footer {
    background: #050505;
    border-top: 1px solid var(--auth-border);
    padding: 80px 48px 48px 48px;
}

.pf-footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 60px;
}

.pf-footer-brand-col {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.pf-copyright {
    color: var(--auth-subtle);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .08em;
    margin-top: 24px;
}

.pf-social-links {
    display: flex;
    gap: 16px;
    margin-top: 20px;
}

.pf-social-links a {
    color: var(--auth-muted);
    font-size: 16px;
    transition: color 0.2s ease;
}

.pf-social-links a:hover {
    color: var(--auth-text);
}

.pf-footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.pf-footer-col h4 {
    color: var(--auth-muted);
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 16px;
    margin-top: 24px;
}

.pf-footer-col h4:first-child {
    margin-top: 0;
}

.pf-footer-col ul {
    list-style: none;
}

.pf-footer-col ul li {
    margin-bottom: 10px;
}

.pf-footer-col ul li a {
    color: var(--auth-text);
    font-size: 13px;
    text-decoration: none;
    transition: color 0.2s ease;
}

.pf-footer-col ul li a:hover {
    color: var(--auth-muted);
}

/* ==========================================
   RESPONSIVE / MOBILE
========================================== */

@media (max-width: 960px) {
    .auth-container {
        grid-template-columns: 1fr;
    }

    .auth-left {
        padding: 32px 28px;
        border-right: 0;
        border-bottom: 1px solid var(--auth-border);
    }

    .hero-text {
        margin-top: 10px;
    }

    .auth-right {
        padding: 32px 20px;
    }

    .auth-card {
        max-width: 500px;
        padding: 28px 24px;
    }

    .pf-footer-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .pf-footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {
    .auth-left {
        padding: 24px 20px;
    }

    .brand h1 {
        font-size: 26px;
    }

    .brand h1 i {
        font-size: 20px;
    }

    .hero-text h2 {
        font-size: 24px;
    }

    .hero-text p {
        font-size: 12px;
    }

    .auth-right {
        padding: 20px 14px;
    }

    .auth-card {
        padding: 20px 16px;
    }

    .pf-footer {
        padding: 48px 20px;
    }

    .pf-footer-grid {
        grid-template-columns: 1fr;
    }
}