/* ==========================================================================
   DEBUNK.IT — Authentication Stylesheet
   "Quiet luxury meets the front page"
   Split Editorial Collage Panel + Restrained Newspaper Form
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Anton&family=Inter:wght@400;500;600;700&family=Newsreader:ital,opsz,wght@0,6..72,400..700;1,6..72,400..700&display=swap');

/* --------------------------------------------------------------------------
   1. SPLIT LAYOUT CONTAINER
   -------------------------------------------------------------------------- */
body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100vh;
    background-color: var(--paper);
    color: var(--ink);
    font-family: var(--font-serif);
    overflow-x: hidden;
}

.auth-container {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    display: flex;
    align-items: stretch;
    justify-content: center;
}

.auth-split-shell {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    width: 100%;
    min-height: 100vh;
}

/* --------------------------------------------------------------------------
   2. EDITORIAL COLLAGE PANEL (LEFT SIDE)
   -------------------------------------------------------------------------- */
.auth-editorial-panel {
    background: var(--paper);
    border-right: 2px solid var(--ink);
    padding: var(--space-7) var(--space-6);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.auth-editorial-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(var(--border) 1px, transparent 1px);
    background-size: 16px 16px;
    opacity: 0.5;
    pointer-events: none;
}

.auth-masthead-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ink-muted);
    border-bottom: 1px solid var(--border-strong);
    padding-bottom: var(--space-2);
    margin-bottom: var(--space-5);
}

.auth-editorial-body {
    position: relative;
    z-index: 2;
    margin: auto 0;
}

.auth-editorial-title {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 4.5vw, 4.2rem);
    line-height: 0.95;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--ink);
    margin: 0 0 var(--space-3) 0;
}

.auth-editorial-title .word-red {
    color: var(--red);
    text-shadow: 2px 2px 0 var(--ink);
}

.auth-editorial-quote {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    line-height: 1.6;
    color: var(--ink-muted);
    margin: 0 0 var(--space-5) 0;
    max-width: 520px;
    border-left: 2px solid var(--ink);
    padding-left: var(--space-3);
    font-style: italic;
}

/* Collage Graphic inside Left Panel */
.auth-collage-art {
    max-width: 440px;
    width: 100%;
    margin-top: var(--space-3);
    border: 1px solid var(--ink);
    background: var(--paper-2);
    box-shadow: var(--shadow-press);
    padding: var(--space-3);
}

.auth-editorial-footer {
    position: relative;
    z-index: 2;
    border-top: 1px solid var(--border-hairline);
    padding-top: var(--space-3);
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-muted);
}

/* --------------------------------------------------------------------------
   3. CLEAN FORM PANEL (RIGHT SIDE)
   -------------------------------------------------------------------------- */
.auth-form-panel {
    background: var(--paper-2);
    padding: var(--space-7) var(--space-6);
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.auth-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-muted);
    text-decoration: none;
    margin-bottom: var(--space-5);
    transition: color 0.15s ease;
}

.auth-back-link:hover {
    color: var(--ink);
}

.auth-form-content {
    max-width: 420px;
    width: 100%;
    margin: 0 auto;
}

.auth-header {
    margin-bottom: var(--space-5);
    border-bottom: 2px solid var(--ink);
    padding-bottom: var(--space-3);
}

.auth-header h1 {
    font-family: var(--font-display);
    font-size: 2.2rem;
    line-height: 1;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin: 0 0 6px 0;
    color: var(--ink);
}

.auth-header p {
    font-family: var(--font-serif);
    font-size: 1rem;
    color: var(--ink-muted);
    margin: 0;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

/* Visible Form Labels & Inputs */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink);
}

.form-input,
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"] {
    width: 100%;
    min-height: 46px;
    padding: 10px 14px;
    background: var(--paper-inset);
    border: 1px solid var(--border-strong);
    color: var(--ink);
    font-family: var(--font-serif);
    font-size: 1.02rem;
    border-radius: var(--radius-sm);
    box-sizing: border-box;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-group input:focus {
    border-color: var(--ink);
    box-shadow: 2px 2px 0 var(--ink);
    outline: none;
}

.form-group input::placeholder {
    color: var(--ink-dim);
    font-style: italic;
}

/* Password Input Group with Accessible Toggle */
.password-input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-group input {
    padding-right: 48px;
}

.password-toggle {
    position: absolute;
    right: 2px;
    top: 2px;
    bottom: 2px;
    min-width: 44px;
    min-height: 42px;
    background: transparent;
    border: none;
    color: var(--ink-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: color 0.15s ease;
}

.password-toggle:hover {
    color: var(--ink);
}

.password-toggle svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
}

/* Remember Me Checkbox */
.form-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
}

.form-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--ink);
    cursor: pointer;
}

.form-checkbox label {
    font-family: var(--font-serif);
    font-size: 0.95rem;
    color: var(--ink);
    cursor: pointer;
    user-select: none;
}

/* Submit Action Button */
.auth-btn {
    min-height: 48px;
    padding: 12px 24px;
    background: var(--ink);
    color: var(--paper);
    border: 1px solid var(--ink);
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    box-shadow: var(--shadow-press);
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    margin-top: var(--space-2);
}

.auth-btn:hover {
    transform: translate(-1px, -1px);
    box-shadow: 4px 4px 0 var(--ink);
}

.auth-btn:active {
    transform: translate(1px, 1px);
    box-shadow: 1px 1px 0 var(--ink);
}

.auth-divider {
    text-align: center;
    position: relative;
    margin: var(--space-3) 0;
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-muted);
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 42%;
    height: 1px;
    background: var(--border);
}

.auth-divider::before { left: 0; }
.auth-divider::after { right: 0; }

.auth-switch {
    text-align: center;
    font-family: var(--font-serif);
    font-size: 0.95rem;
    color: var(--ink-muted);
    margin: 0;
}

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

/* Inline Messages / Field Validation Errors */
.error-message {
    margin-top: var(--space-3);
    padding: 10px 14px;
    background: var(--red-tint);
    border: 1px solid var(--red);
    border-left: 4px solid var(--red);
    color: var(--red-text);
    font-family: var(--font-serif);
    font-size: 0.95rem;
    line-height: 1.45;
}

.success-message {
    margin-top: var(--space-3);
    padding: 10px 14px;
    background: var(--mint-tint);
    border: 1px solid var(--mint);
    border-left: 4px solid var(--mint);
    color: var(--mint-text);
    font-family: var(--font-serif);
    font-size: 0.95rem;
    line-height: 1.45;
}

/* --------------------------------------------------------------------------
   4. RESPONSIVE (STACK ON MOBILE / TABLET)
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    .auth-split-shell {
        grid-template-columns: 1fr;
    }
    .auth-editorial-panel {
        display: none;
    }
    .auth-form-panel {
        padding: var(--space-6) var(--space-4);
    }
}

@media (max-width: 375px) {
    .auth-form-panel {
        padding: var(--space-4) var(--space-3);
    }
    .auth-header h1 {
        font-size: 1.8rem;
    }
}
