/* ============================================================
   Auth V2 - Split-panel layout for login/register pages
   ============================================================ */

:root {
    --bg-primary: #0A1622;
    --bg-elevated: #162535;
    --bg-surface: #1F2F3F;
    --text-primary: #E8F4F8;
    --text-secondary: #A5B8C1;
    --text-tertiary: #6B7C87;
    --border-dark: #2A3A4A;
    --teal-400: #00999E;
    --teal-700: #004D4F;
    --copper-400: #D99558;
    --copper-500: #C57B3D;
    --color-error: #C93B3B;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
}

/* Full-viewport container */
.auth-container {
    display: flex;
    min-height: 100vh;
    background: var(--bg-primary, #0A1622);
}

/* ============ BRANDING PANEL (left) ============ */
.auth-brand {
    width: 40%;
    min-width: 340px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 48px 40px;
    background: linear-gradient(160deg, var(--teal-700, #004D4F) 0%, var(--bg-primary, #0A1622) 60%);
    border-right: 1px solid var(--border-dark, #2A3A4A);
    text-align: center;
}

.auth-brand-inner {
    max-width: 320px;
}

.auth-logo {
    margin-bottom: 16px;
}

.auth-logo svg {
    width: 48px;
    height: 48px;
}

.auth-brand-name {
    font-size: 20px;
    font-weight: 900;
    letter-spacing: 3px;
    background: linear-gradient(135deg, #E8F4F8 0%, #33B0B4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 24px;
    text-transform: uppercase;
}

.auth-tagline {
    font-size: 18px;
    font-weight: 500;
    color: var(--text-primary, #E8F4F8);
    line-height: 1.5;
    margin-bottom: 32px;
}

.auth-features {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.auth-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: 14px;
    color: var(--text-secondary, #A5B8C1);
}

.auth-features li i {
    color: var(--teal-400, #00999E);
    font-size: 16px;
    flex-shrink: 0;
}

/* ============ FORM PANEL (right) ============ */
.auth-form-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 48px 40px;
    overflow-y: auto;
}

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

.auth-form-header {
    margin-bottom: 28px;
}

.auth-form-header h2 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary, #E8F4F8);
    margin: 0 0 6px;
}

.auth-form-header p {
    font-size: 14px;
    color: var(--text-tertiary, #6B7C87);
    margin: 0;
}

/* ============ FORM ELEMENTS ============ */
.auth-field {
    margin-bottom: 18px;
}

.auth-field:last-of-type {
    margin-bottom: 24px;
}

.auth-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary, #A5B8C1);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.auth-label .required {
    color: var(--color-error, #C93B3B);
}

.auth-input {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg-surface, #1F2F3F);
    border: 1px solid var(--border-dark, #2A3A4A);
    border-radius: 8px;
    color: var(--text-primary, #E8F4F8);
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.15s;
}

.auth-input:focus {
    outline: none;
    border-color: var(--teal-400, #00999E);
}

.auth-input::placeholder {
    color: var(--text-tertiary, #6B7C87);
}

.auth-input-help {
    font-size: 11px;
    color: var(--text-tertiary, #6B7C87);
    margin-top: 4px;
}

.auth-field-error {
    font-size: 12px;
    color: var(--color-error, #C93B3B);
    margin-top: 4px;
}

.auth-field-row {
    display: flex;
    gap: 12px;
}

.auth-field-row .auth-field {
    flex: 1;
}

/* ============ LEGAL SECTION ============ */
.auth-legal {
    padding: 14px 16px;
    border-radius: 8px;
    background: var(--bg-surface, #1F2F3F);
    border: 1px solid var(--border-dark, #2A3A4A);
    margin-bottom: 24px;
}

.auth-legal-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary, #A5B8C1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.auth-legal-title i {
    color: var(--teal-400, #00999E);
}

.auth-check {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 4px 0;
}

.auth-check input[type="checkbox"] {
    margin-top: 3px;
    accent-color: var(--teal-400, #00999E);
    flex-shrink: 0;
}

.auth-check label {
    font-size: 13px;
    color: var(--text-secondary, #A5B8C1);
    cursor: pointer;
}

.auth-check label a {
    color: var(--teal-400, #00999E);
    text-decoration: none;
}

.auth-check label a:hover {
    text-decoration: underline;
}

/* ============ BUTTONS ============ */
.auth-btn-primary {
    width: 100%;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--copper-500, #C57B3D), var(--copper-400, #D99558));
    color: white;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(197, 123, 61, 0.3);
}

.auth-btn-primary:hover {
    box-shadow: 0 4px 16px rgba(197, 123, 61, 0.4);
    transform: translateY(-1px);
}

.auth-btn-primary:active {
    transform: translateY(0);
}

/* ============ ALERTS ============ */
.auth-alert {
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 18px;
}

.auth-alert-error {
    background: rgba(201, 59, 59, 0.12);
    border: 1px solid rgba(201, 59, 59, 0.3);
    color: #E87070;
}

.auth-alert-warning {
    background: rgba(217, 149, 88, 0.12);
    border: 1px solid rgba(217, 149, 88, 0.3);
    color: var(--copper-400, #D99558);
}

.auth-alert-success {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #10B981;
}

/* ============ LINKS & DIVIDER ============ */
.auth-links {
    text-align: center;
    margin-top: 20px;
}

.auth-links a {
    font-size: 13px;
    color: var(--teal-400, #00999E);
    text-decoration: none;
}

.auth-links a:hover {
    text-decoration: underline;
}

.auth-divider {
    border: none;
    border-top: 1px solid var(--border-dark, #2A3A4A);
    margin: 20px 0;
}

.auth-footer-text {
    font-size: 13px;
    color: var(--text-tertiary, #6B7C87);
    text-align: center;
}

.auth-footer-text a {
    color: var(--teal-400, #00999E);
    text-decoration: none;
}

.auth-footer-text a:hover {
    text-decoration: underline;
}

/* ============ CENTERED LAYOUT (utility pages) ============ */
.auth-centered {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 48px 24px;
    background: var(--bg-primary);
}

.auth-centered .auth-form-card {
    width: 100%;
    max-width: 460px;
}

.auth-centered .auth-brand-mini {
    text-align: center;
    margin-bottom: 32px;
}

.auth-centered .auth-brand-mini svg {
    width: 36px;
    height: 36px;
    margin-bottom: 8px;
}

.auth-centered .auth-brand-mini .brand-name {
    font-size: 16px;
    font-weight: 900;
    letter-spacing: 3px;
    background: linear-gradient(135deg, #E8F4F8 0%, #33B0B4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
}

.auth-icon {
    font-size: 48px;
    margin-bottom: 12px;
    display: block;
}

.auth-info-box {
    padding: 14px 16px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 18px;
    background: rgba(0, 153, 158, 0.1);
    border: 1px solid rgba(0, 153, 158, 0.25);
    color: var(--text-secondary, #A5B8C1);
}

.auth-info-box ol {
    margin: 8px 0 0 16px;
    padding: 0;
}

.auth-info-box ol li {
    padding: 2px 0;
}

.auth-info-box strong {
    color: var(--text-primary, #E8F4F8);
}

.auth-success-box {
    padding: 14px 16px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 18px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.25);
    color: #10B981;
}

.auth-warning-box {
    padding: 14px 16px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 18px;
    background: rgba(217, 149, 88, 0.1);
    border: 1px solid rgba(217, 149, 88, 0.25);
    color: var(--copper-400, #D99558);
}

.auth-text-muted {
    font-size: 12px;
    color: var(--text-tertiary, #6B7C87);
    margin-bottom: 18px;
}

.auth-btn-outline {
    width: 100%;
    padding: 12px 24px;
    border: 1px solid var(--border-dark, #2A3A4A);
    border-radius: 8px;
    background: transparent;
    color: var(--text-secondary, #A5B8C1);
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.auth-btn-outline:hover {
    border-color: var(--teal-400, #00999E);
    color: var(--text-primary, #E8F4F8);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
    .auth-container {
        flex-direction: column;
    }

    .auth-brand {
        width: 100%;
        min-width: auto;
        padding: 32px 24px 24px;
        border-right: none;
        border-bottom: 1px solid var(--border-dark, #2A3A4A);
    }

    .auth-features {
        display: flex;
        flex-wrap: wrap;
        gap: 0 20px;
    }

    .auth-features li {
        padding: 4px 0;
        font-size: 13px;
    }

    .auth-tagline {
        font-size: 16px;
        margin-bottom: 20px;
    }

    .auth-form-panel {
        padding: 32px 24px;
    }
}

@media (max-width: 500px) {
    .auth-field-row {
        flex-direction: column;
        gap: 0;
    }

    .auth-form-panel {
        padding: 24px 16px;
    }
}
