/* ========== AUTH PAGE ========== */
@import url('https://fonts.googleapis.com/css2?family=Bangers&family=Inter:wght@400;500;600;700&display=swap');

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

:root {
    --black: #0d0d0d;
    --dark: #1a1a2e;
    --panel: #16213e;
    --accent: #e94560;
    --accent-hover: #ff6b81;
    --yellow: #f5c518;
    --cyan: #00d4ff;
    --white: #f8f8f8;
    --gray: #a0a0b0;
    --gray-light: #c0c0cc;
    --input-bg: #1e2a45;
    --input-border: #2a3a5c;
    --font-display: 'Bangers', cursive;
    --font-body: 'Inter', sans-serif;
    --radius: 12px;
}

body {
    font-family: var(--font-body);
    background: var(--dark);
    color: var(--white);
    min-height: 100vh;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

/* ========== SPLIT LAYOUT ========== */
.auth-container {
    display: flex;
    min-height: 100vh;
}

/* ========== LEFT HERO ========== */
.auth-hero {
    flex: 1;
    background: var(--black);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 3rem;
}

.auth-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 30% 20%, rgba(233,69,96,.2) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 80%, rgba(0,212,255,.15) 0%, transparent 50%);
    pointer-events: none;
}

/* Comic halftone dots */
.auth-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,.04) 1px, transparent 1px);
    background-size: 16px 16px;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 420px;
    text-align: center;
}

.hero-logo-text {
    font-family: var(--font-display);
    font-size: 2.2rem;
    letter-spacing: 2px;
    margin-bottom: 2rem;
}
.hero-logo-text .highlight { color: var(--accent); }

.hero-title {
    font-family: var(--font-display);
    font-size: 2.8rem;
    letter-spacing: 2px;
    line-height: 1.1;
    margin-bottom: 1rem;
}
.hero-title .text-accent { color: var(--accent); }
.hero-title .text-cyan { color: var(--cyan); }

.hero-subtitle {
    color: var(--gray);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 2.5rem;
}

.hero-features {
    display: flex;
    flex-direction: column;
    gap: .8rem;
    margin-bottom: 2.5rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: .75rem;
    font-size: .95rem;
}

.feature-icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(0,212,255,.15);
    color: var(--cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .7rem;
    flex-shrink: 0;
}

.hero-footer-text {
    color: var(--gray);
    font-size: .85rem;
    font-style: italic;
}

/* Comic panel decorations */
.comic-panels {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: .06;
}

.comic-panel-deco {
    position: absolute;
    border: 3px solid var(--white);
    border-radius: 8px;
}
.comic-panel-deco:nth-child(1) { top: 5%; left: 5%; width: 120px; height: 160px; transform: rotate(-6deg); }
.comic-panel-deco:nth-child(2) { top: 15%; right: 8%; width: 100px; height: 130px; transform: rotate(4deg); }
.comic-panel-deco:nth-child(3) { bottom: 10%; left: 10%; width: 140px; height: 100px; transform: rotate(3deg); }
.comic-panel-deco:nth-child(4) { bottom: 20%; right: 5%; width: 110px; height: 150px; transform: rotate(-5deg); }

/* ========== RIGHT FORM ========== */
.auth-form-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: var(--dark);
}

.auth-form-container {
    width: 100%;
    max-width: 420px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    color: var(--gray);
    font-size: .9rem;
    margin-bottom: 2rem;
    transition: color .2s;
}
.back-link:hover { color: var(--white); }

.auth-box {
    width: 100%;
}

.auth-title {
    font-family: var(--font-display);
    font-size: 1.8rem;
    letter-spacing: 1px;
    margin-bottom: .4rem;
}

.auth-description {
    color: var(--gray);
    font-size: .9rem;
    margin-bottom: 2rem;
}

/* ========== MESSAGES ========== */
.message-box {
    padding: .85rem 1rem;
    border-radius: 8px;
    font-size: .9rem;
    margin-bottom: 1.2rem;
    line-height: 1.5;
}
.error-message {
    background: rgba(233,69,96,.12);
    border: 1px solid rgba(233,69,96,.3);
    color: var(--accent-hover);
}
.success-message {
    background: rgba(0,212,255,.1);
    border: 1px solid rgba(0,212,255,.25);
    color: var(--cyan);
}

/* ========== BUTTONS ========== */
.auth-button {
    width: 100%;
    padding: .85rem 1.2rem;
    border-radius: 50px;
    border: none;
    font-family: var(--font-body);
    font-size: .95rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    transition: background .2s, transform .2s, box-shadow .2s;
}
.auth-button:hover { transform: translateY(-1px); }
.auth-button:disabled { opacity: .6; cursor: not-allowed; transform: none; }

.google-button {
    background: var(--white);
    color: var(--black);
}
.google-button:hover { box-shadow: 0 4px 16px rgba(248,248,248,.15); }

.google-button svg {
    width: 20px;
    height: 20px;
}

.primary-button {
    background: var(--accent);
    color: var(--white);
    box-shadow: 0 4px 16px rgba(233,69,96,.3);
}
.primary-button:hover {
    background: var(--accent-hover);
    box-shadow: 0 6px 24px rgba(233,69,96,.4);
}

/* ========== DIVIDER ========== */
.divider {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
}
.divider::before, .divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--input-border);
}
.divider-text {
    padding: 0 1rem;
    color: var(--gray);
    font-size: .8rem;
    font-weight: 500;
    letter-spacing: 1px;
}

/* ========== FORM ========== */
.form-group {
    margin-bottom: 1.2rem;
}

.form-label {
    display: block;
    font-size: .85rem;
    font-weight: 500;
    color: var(--gray-light);
    margin-bottom: .4rem;
}

.form-input {
    width: 100%;
    padding: .8rem 1rem;
    background: var(--input-bg);
    border: 1.5px solid var(--input-border);
    border-radius: 10px;
    color: var(--white);
    font-family: var(--font-body);
    font-size: .95rem;
    transition: border-color .2s, box-shadow .2s;
    outline: none;
}
.form-input::placeholder { color: var(--gray); }
.form-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(233,69,96,.1);
}

/* ========== TOGGLE ========== */
.toggle-section {
    text-align: center;
    margin-top: 1.5rem;
}
.toggle-text {
    color: var(--gray);
    font-size: .9rem;
}
.toggle-link {
    color: var(--cyan);
    font-weight: 600;
    margin-left: .3rem;
    transition: color .2s;
}
.toggle-link:hover { color: var(--white); }

/* ========== FOOTER ========== */
.auth-footer {
    margin-top: 2rem;
    text-align: center;
}
.footer-note {
    color: var(--gray);
    font-size: .8rem;
    line-height: 1.5;
}
.footer-link {
    color: var(--gray-light);
    text-decoration: underline;
    transition: color .2s;
}
.footer-link:hover { color: var(--white); }

/* ========== SPINNER ========== */
.spinner {
    width: 18px;
    height: 18px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin .6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ========== RESEND BUTTON ========== */
.resend-verification-btn {
    margin-top: 10px;
    background: var(--cyan);
    color: var(--black);
    border: none;
    padding: 10px 20px;
    border-radius: 50px;
    cursor: pointer;
    font-size: .85rem;
    font-weight: 600;
    transition: opacity .2s;
}
.resend-verification-btn:hover { opacity: .85; }
.resend-verification-btn:disabled { opacity: .5; cursor: not-allowed; }

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
    .auth-container { flex-direction: column; }
    .auth-hero {
        min-height: 40vh;
        padding: 3rem 2rem;
    }
    .hero-title { font-size: 2.2rem; }
    .auth-form-section { padding: 2rem 1.5rem; }
}

@media (max-width: 480px) {
    .auth-hero { min-height: 35vh; padding: 2rem 1.5rem; }
    .hero-title { font-size: 1.8rem; }
    .hero-subtitle { font-size: .9rem; }
    .hero-features { display: none; }
    .auth-title { font-size: 1.5rem; }
}
