/* ============================================
   Quotex Coin — Professional Auth Pages
   ============================================ */

body.auth-pro-page {
    overflow-x: hidden;
    overflow-y: auto;
    background: #e8eef5;
    min-height: 100dvh;
}

.auth-pro .auth-container {
    min-height: 100dvh;
    max-width: none;
}

.auth-pro .auth-side-image {
    display: flex;
    background: linear-gradient(160deg, #f8fafc 0%, #e2e8f0 50%, #f1f5f9 100%);
    border-right: 1px solid var(--border-light);
    padding: 48px 40px;
}

.auth-side-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(24, 24, 27, 0.06) 0%, transparent 45%),
        radial-gradient(circle at 80% 70%, rgba(34, 197, 94, 0.12) 0%, transparent 40%);
    pointer-events: none;
}

.auth-pro .auth-side-image::before {
    background: radial-gradient(circle, rgba(24, 24, 27, 0.05) 0%, transparent 65%);
}

.auth-side-features {
    list-style: none;
    margin: 24px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: left;
    max-width: 320px;
}

.auth-side-features li {
    font-size: 13px;
    color: var(--text-secondary);
    padding-left: 22px;
    position: relative;
}

.auth-side-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 7px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-light);
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.6);
}

.auth-pro .auth-side-image-placeholder {
    width: 100%;
    max-width: 380px;
    height: auto;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
    margin-bottom: 28px;
}

.auth-pro .auth-card-container {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 24px;
    padding-top: max(32px, env(safe-area-inset-top));
    background: linear-gradient(180deg, #f1f5f9 0%, #e8eef5 100%);
    min-height: 100dvh;
}

/* Form column is first in DOM — login visible immediately */
.auth-pro .auth-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.auth-home-link {
    display: inline-block;
    margin-bottom: 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.auth-home-link:hover {
    color: var(--accent-light);
}

.auth-pro-card {
    max-width: 440px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
    background: #ffffff;
    padding: 36px 32px;
}

.auth-card-head {
    text-align: center;
    margin-bottom: 8px;
}

.auth-card-head h1 {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-primary);
    margin-top: 12px;
}

.auth-card-head .subtitle {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 6px;
}

.auth-alert {
    padding: 12px 14px;
    border-radius: 10px;
    margin-bottom: 16px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.45;
}

.auth-alert-error {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #fca5a5;
}

.auth-alert-success {
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.35);
    color: #86efac;
}

.auth-pro-page .form-group label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.auth-pro-page .form-group input {
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 15px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.auth-pro-page .form-group input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(24, 24, 27, 0.1);
    outline: none;
}

.auth-pro-page .btn-primary {
    background: linear-gradient(135deg, #14b8a6, #0f766e);
    border: none;
    border-radius: 12px;
    padding: 14px;
    font-size: 15px;
    font-weight: 800;
    box-shadow: var(--shadow-md);
    margin-top: 8px;
}

.auth-pro-page .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.auth-forgot-row {
    display: flex;
    justify-content: flex-end;
    margin: -6px 0 14px;
}

.auth-forgot-row a {
    font-size: 12px;
    font-weight: 600;
    color: var(--accent-light);
    text-decoration: none;
}

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

.auth-footer a {
    color: var(--accent-light);
    font-weight: 600;
    text-decoration: none;
}

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

.auth-mobile-top {
    display: none;
}

/* Login page — centered card with logo, no hero panel */
.auth-minimal-page {
    background:
        radial-gradient(circle at 50% 0%, rgba(24, 24, 27, 0.04) 0%, transparent 50%),
        linear-gradient(180deg, #f1f5f9 0%, #e8eef5 100%);
}

.auth-minimal-page .auth-container.auth-minimal {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100dvh;
    grid-template-columns: 1fr;
}

.auth-minimal-page .auth-card-container {
    width: 100%;
    max-width: 440px;
    min-height: auto;
    padding: 24px 20px;
    padding-top: max(24px, env(safe-area-inset-top));
    padding-bottom: max(24px, env(safe-area-inset-bottom));
    border: none;
    background: transparent;
}

.auth-minimal-page .auth-pro-card {
    width: 100%;
    padding: 32px 28px 28px;
}

.auth-brand-head {
    text-align: center;
    margin-bottom: 24px;
}

.auth-brand-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
}

.auth-brand-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #14b8a6, #0f766e);
    border-radius: 14px;
    font-size: 22px;
    font-weight: 900;
    color: #fff;
    box-shadow: var(--shadow-md);
}

.auth-brand-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.auth-brand-name {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.auth-brand-tag {
    font-size: 11px;
    font-weight: 600;
    color: var(--accent-light);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.auth-brand-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0;
    letter-spacing: -0.02em;
}

.auth-brand-sub {
    font-size: 13px;
    color: var(--text-muted);
    margin: 8px 0 0;
    line-height: 1.45;
}

.auth-minimal-page .auth-footer {
    text-align: center;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 13px;
    color: var(--text-secondary);
}

.auth-minimal-page .auth-card-form-only {
    padding: 32px 28px 28px;
}

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

    .auth-pro .auth-card-container {
        min-height: auto;
        min-height: min(100dvh, auto);
        padding: 20px 16px 28px;
        padding-top: max(20px, env(safe-area-inset-top));
    }

    .auth-pro .auth-side-image {
        display: flex;
        min-height: auto;
        padding: 24px 20px 32px;
        border-right: none;
        border-top: 1px solid rgba(255, 255, 255, 0.06);
        border-bottom: none;
    }

    /* Hide large hero image on mobile — login form is the first view */
    .auth-pro .auth-side-image-placeholder {
        display: none;
    }

    .auth-pro .auth-side-logo {
        margin-bottom: 12px;
    }

    .auth-pro .auth-side-text h2 {
        font-size: 18px;
    }

    .auth-pro .auth-side-text p {
        font-size: 13px;
    }

    .auth-side-features {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px 16px;
        max-width: 100%;
        justify-content: center;
        margin-top: 12px;
    }

    .auth-side-features li {
        font-size: 11px;
        padding-left: 14px;
    }

    .auth-pro-card {
        padding: 28px 22px;
    }
}

@media (min-width: 969px) {
    .auth-pro .auth-container {
        grid-template-columns: 1fr 1fr;
    }

    .auth-pro .auth-card-container {
        min-height: 100dvh;
        border-right: 1px solid rgba(255, 255, 255, 0.06);
    }

    .auth-pro .auth-side-image {
        min-height: 100dvh;
        border-right: none;
    }
}
