﻿/* ─── Auth Page Layout ──────────────────────────────────────────────────── */
.auth-page {
    display: flex;
    min-height: 100vh;
    background: #0d0d0d;
}

.auth-page-centered {
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

/* ─── Panels ────────────────────────────────────────────────────────────── */
.auth-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 40px;
}

.auth-panel-left {
    background: linear-gradient(135deg, #1a1200 0%, #2d1f00 50%, #1a1200 100%);
    position: relative;
    overflow: hidden;
}

    .auth-panel-left::before {
        content: '';
        position: absolute;
        inset: 0;
        background: radial-gradient(ellipse at 20% 50%, rgba(184, 150, 12, 0.15) 0%, transparent 60%), radial-gradient(ellipse at 80% 50%, rgba(184, 150, 12, 0.08) 0%, transparent 60%);
    }

.auth-panel-right {
    background: #111;
    overflow-y: auto;
}

/* ─── Left Panel Content ────────────────────────────────────────────────── */
.auth-panel-content {
    position: relative;
    z-index: 1;
    max-width: 420px;
    color: #fff;
}

.auth-panel-logo {
    font-size: 52px;
    margin-bottom: 24px;
    display: block;
}

.auth-panel-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 40px;
    font-weight: 600;
    color: #c9a227;
    margin-bottom: 16px;
    line-height: 1.2;
}

.auth-panel-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    color: rgba(255,255,255,0.65);
    line-height: 1.8;
    margin-bottom: 32px;
}

.auth-panel-ornament {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
    color: #c9a227;
}

    .auth-panel-ornament span {
        flex: 1;
        height: 1px;
        background: linear-gradient(90deg, transparent, #c9a22766, transparent);
    }

.auth-panel-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

    .auth-panel-features li {
        font-family: 'Montserrat', sans-serif;
        font-size: 14px;
        color: rgba(255,255,255,0.75);
        display: flex;
        align-items: center;
        gap: 12px;
    }

        .auth-panel-features li i {
            color: #c9a227;
            font-size: 16px;
            flex-shrink: 0;
        }

/* ─── Form Wrapper ──────────────────────────────────────────────────────── */
.auth-form-wrapper {
    width: 100%;
    max-width: 480px;
    padding: 20px 0;
}

.auth-form-header {
    margin-bottom: 36px;
}

.auth-form-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 36px;
    font-weight: 600;
    color: #c9a227;
    margin: 0 0 8px;
}

.auth-form-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    color: rgba(255,255,255,0.5);
    margin: 0;
}

/* ─── Validation ────────────────────────────────────────────────────────── */
.auth-validation-summary {
    background: rgba(231, 76, 60, 0.12);
    border: 1px solid rgba(231, 76, 60, 0.3);
    border-radius: 8px;
    padding: 14px 18px;
    margin-bottom: 24px;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    color: #e74c3c;
}

    .auth-validation-summary ul {
        margin: 0;
        padding-left: 18px;
    }

/* ─── Form ──────────────────────────────────────────────────────────────── */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: rgba(255,255,255,0.6);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.form-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.form-input-icon {
    position: absolute;
    left: 16px;
    color: rgba(255,255,255,0.3);
    font-size: 14px;
    pointer-events: none;
    z-index: 1;
}

.form-input {
    width: 100%;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 14px 16px 14px 44px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    color: #fff;
    transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
    outline: none;
    box-sizing: border-box;
}

    .form-input:focus {
        border-color: #c9a227;
        background: rgba(201, 162, 39, 0.06);
        box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.12);
    }

    .form-input::placeholder {
        color: rgba(255,255,255,0.2);
    }

    .form-input.input-validation-error {
        border-color: #e74c3c;
    }

.form-password-toggle {
    position: absolute;
    right: 14px;
    background: none;
    border: none;
    cursor: pointer;
    color: rgba(255,255,255,0.3);
    padding: 4px;
    transition: color 0.2s;
}

    .form-password-toggle:hover {
        color: #c9a227;
    }

.form-error {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    color: #e74c3c;
}

/* ─── Password Strength ─────────────────────────────────────────────────── */
.password-strength {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 6px;
}

.strength-track {
    flex: 1;
    height: 4px;
    background: rgba(255,255,255,0.08);
    border-radius: 2px;
    overflow: hidden;
}

.strength-fill {
    height: 100%;
    width: 0;
    border-radius: 2px;
    transition: width 0.3s, background 0.3s;
}

.strength-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 600;
    min-width: 42px;
}

/* ─── Row Helpers ───────────────────────────────────────────────────────── */
.form-row-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.form-row-two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* ─── Checkbox ──────────────────────────────────────────────────────────── */
.form-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
}

.form-checkbox {
    width: 16px;
    height: 16px;
    accent-color: #c9a227;
    margin-top: 2px;
    flex-shrink: 0;
}

.form-checkbox-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    color: rgba(255,255,255,0.55);
    line-height: 1.5;
}

/* ─── Buttons ───────────────────────────────────────────────────────────── */
.btn-auth-submit {
    width: 100%;
    background: linear-gradient(135deg, #c9a227, #a07c18);
    color: #000;
    border: none;
    border-radius: 10px;
    padding: 15px;
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: opacity 0.25s, transform 0.2s;
    text-transform: uppercase;
}

    .btn-auth-submit:hover {
        opacity: 0.9;
        transform: translateY(-1px);
    }

    .btn-auth-submit:disabled {
        opacity: 0.6;
        cursor: not-allowed;
        transform: none;
    }

.btn-auth-secondary {
    display: block;
    width: 100%;
    background: transparent;
    color: rgba(255,255,255,0.6);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 10px;
    padding: 14px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: border-color 0.25s, color 0.25s;
    box-sizing: border-box;
}

    .btn-auth-secondary:hover {
        border-color: #c9a227;
        color: #c9a227;
    }

.external-auth-form {
    margin-bottom: 1rem;
}

.btn-auth-google {
    width: 100%;
    height: 50px;
    border: 1px solid rgba(255,255,255,0.16);
    background: rgba(255,255,255,0.96);
    color: #2c3e50;
    border-radius: 10px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    cursor: pointer;
    transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}

    .btn-auth-google:hover {
        border-color: #c9a227;
        box-shadow: 0 8px 22px rgba(0,0,0,0.18);
        transform: translateY(-1px);
    }

    .btn-auth-google .fa-google {
        color: #db4437;
    }

    .btn-auth-google:disabled {
        opacity: 0.55;
        cursor: not-allowed;
        transform: none;
        box-shadow: none;
    }

.external-auth-note {
    display: block;
    margin-top: 0.55rem;
    color: rgba(255,255,255,0.45);
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    text-align: center;
}

/* ─── Divider ───────────────────────────────────────────────────────────── */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 20px 0;
}

    .auth-divider::before,
    .auth-divider::after {
        content: '';
        flex: 1;
        height: 1px;
        background: rgba(255,255,255,0.08);
    }

    .auth-divider span {
        font-family: 'Montserrat', sans-serif;
        font-size: 12px;
        color: rgba(255,255,255,0.25);
        text-transform: uppercase;
    }

/* ─── Auth Link ─────────────────────────────────────────────────────────── */
.auth-link {
    color: #c9a227;
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.2s;
}

    .auth-link:hover {
        opacity: 0.8;
        text-decoration: underline;
    }

/* ─── Auth Card (centered pages) ────────────────────────────────────────── */
.auth-card {
    background: #1a1a1a;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    padding: 48px 40px;
    width: 100%;
    max-width: 480px;
    text-align: center;
}

.auth-card-icon {
    font-size: 52px;
    margin-bottom: 24px;
    display: block;
}

.auth-card-success {
    border-color: rgba(39, 174, 96, 0.3);
}

.auth-card-error {
    border-color: rgba(231, 76, 60, 0.3);
}

/* ─── Alert Banner ──────────────────────────────────────────────────────── */
.alert-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    position: relative;
}

.alert-success {
    background: rgba(39, 174, 96, 0.12);
    border-bottom: 1px solid rgba(39, 174, 96, 0.25);
    color: #27ae60;
}

.alert-error {
    background: rgba(231, 76, 60, 0.12);
    border-bottom: 1px solid rgba(231, 76, 60, 0.25);
    color: #e74c3c;
}

.alert-close {
    margin-left: auto;
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: inherit;
    opacity: 0.6;
    line-height: 1;
}

    .alert-close:hover {
        opacity: 1;
    }

/* ─── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .auth-page {
        flex-direction: column;
    }

    .auth-panel-left {
        padding: 40px 24px;
        min-height: auto;
    }

    .auth-panel-right {
        padding: 40px 24px;
    }

    .auth-form-wrapper {
        max-width: 100%;
    }

    .form-row-two {
        grid-template-columns: 1fr;
    }

    .auth-panel-title {
        font-size: 28px;
    }
}
