﻿.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 40px 20px;
    background: radial-gradient( circle at 15% 20%, rgba(108, 99, 255, .15), transparent 30% ), radial-gradient( circle at 85% 80%, rgba(0, 212, 255, .10), transparent 30% ), #070b14;
}

.auth-container {
    width: 100%;
    max-width: 430px;
    position: relative;
    z-index: 2;
}

.auth-container-register {
    max-width: 460px;
}

.auth-glow {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
}

.auth-glow-one {
    background: rgba(108, 99, 255, .10);
    top: -200px;
    left: -150px;
}

.auth-glow-two {
    background: rgba(0, 212, 255, .08);
    bottom: -200px;
    right: -150px;
}

.auth-brand {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 28px;
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: linear-gradient( 135deg, #6c63ff, #00d4ff );
    color: white;
    font-size: 22px;
    box-shadow: 0 8px 30px rgba(108,99,255,.25);
}

.brand-name {
    font-size: 25px;
    font-weight: 800;
    letter-spacing: -.7px;
    color: white;
}

    .brand-name span {
        color: #00d4ff;
    }

.auth-card {
    padding: 36px;
    border-radius: 22px;
    border: 1px solid rgba(255,255,255,.08);
    background: linear-gradient( 145deg, rgba(17,24,39,.94), rgba(10,15,26,.96) );
    box-shadow: 0 30px 100px rgba(0,0,0,.45);
    backdrop-filter: blur(20px);
}

.auth-header {
    margin-bottom: 30px;
}

    .auth-header .eyebrow {
        color: #00d4ff;
        font-size: 10px;
        letter-spacing: 2px;
        font-weight: 800;
        margin-bottom: 8px;
    }

    .auth-header h1 {
        margin: 0;
        font-size: 31px;
        letter-spacing: -1px;
        color: white;
    }

    .auth-header p {
        margin: 9px 0 0;
        color: #8792a5;
        font-size: 13px;
        line-height: 1.6;
    }

.auth-form-group {
    margin-bottom: 19px;
}

    .auth-form-group label {
        display: block;
        margin-bottom: 8px;
        color: #cdd4df;
        font-size: 12px;
        font-weight: 600;
    }

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 14px;
    color: #687386;
    font-size: 14px;
    pointer-events: none;
    z-index: 2;
}

.auth-input {
    width: 100%;
    height: 48px;
    padding: 0 15px 0 42px;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 10px;
    outline: none;
    background: rgba(0,0,0,.20);
    color: white;
    font-size: 13px;
    transition: all .2s ease;
}

    .auth-input::placeholder {
        color: #515b6c;
    }

    .auth-input:focus {
        border-color: #6c63ff;
        background: rgba(108,99,255,.04);
        box-shadow: 0 0 0 3px rgba(108,99,255,.10);
    }

.password-input {
    padding-right: 65px;
}

.password-toggle {
    position: absolute;
    right: 12px;
    border: 0;
    background: transparent;
    color: #788398;
    font-size: 11px;
    cursor: pointer;
    padding: 5px;
}

    .password-toggle:hover {
        color: #00d4ff;
    }

.password-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

    .password-label-row a {
        color: #7c74ff;
        font-size: 11px;
        text-decoration: none;
    }

        .password-label-row a:hover {
            color: #00d4ff;
        }

.remember-row {
    margin: 4px 0 20px;
}

.checkbox-label {
    display: flex !important;
    align-items: center;
    gap: 8px;
    color: #7f899a !important;
    cursor: pointer;
}

    .checkbox-label input {
        width: 14px;
        height: 14px;
        accent-color: #6c63ff;
    }

.auth-button {
    width: 100%;
    height: 49px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 0;
    border-radius: 10px;
    background: linear-gradient( 100deg, #6c63ff, #5147e8 );
    color: white;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all .2s ease;
    box-shadow: 0 10px 30px rgba(108,99,255,.18);
}

    .auth-button:hover {
        transform: translateY(-1px);
        box-shadow: 0 15px 35px rgba(108,99,255,.28);
    }

.button-arrow {
    font-size: 18px;
    transition: transform .2s;
}

.auth-button:hover .button-arrow {
    transform: translateX(3px);
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 25px 0;
    color: #454d5b;
    font-size: 9px;
    font-weight: 700;
}

    .auth-divider::before,
    .auth-divider::after {
        content: "";
        height: 1px;
        flex: 1;
        background: rgba(255,255,255,.07);
    }

.auth-footer {
    text-align: center;
    color: #737e91;
    font-size: 12px;
}

    .auth-footer a {
        color: #8c84ff;
        text-decoration: none;
        font-weight: 600;
    }

        .auth-footer a:hover {
            color: #00d4ff;
        }

.auth-security {
    text-align: center;
    margin-top: 22px;
    color: #4f596a;
    font-size: 10px;
    letter-spacing: .2px;
}

    .auth-security span:first-child {
        color: #27d17f;
        margin-right: 5px;
    }

.security-dot {
    margin: 0 7px;
    color: #343c4b;
}

.validation-summary {
    color: #ff7085;
    background: rgba(255,92,117,.06);
    border: 1px solid rgba(255,92,117,.12);
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 11px;
    margin-bottom: 18px;
}

    .validation-summary:empty {
        display: none;
    }

.field-validation {
    display: block;
    color: #ff7085;
    font-size: 10px;
    margin-top: 5px;
}

@media(max-width: 500px) {

    .auth-page {
        padding: 25px 15px;
    }

    .auth-card {
        padding: 26px 20px;
        border-radius: 18px;
    }

    .auth-header h1 {
        font-size: 27px;
    }
}

html[data-theme="light"] .auth-page {
    background: radial-gradient(circle at 15% 20%, rgba(92,82,220,.08), transparent 30%), radial-gradient(circle at 85% 80%, rgba(8,127,163,.06), transparent 30%), var(--bg);
}

html[data-theme="light"] .auth-card {
    background: linear-gradient(145deg, rgba(255,255,255,.98), rgba(247,249,252,.98));
    border-color: var(--border);
    box-shadow: var(--shadow);
}

    html[data-theme="light"] .auth-card h1,
    html[data-theme="light"] .auth-brand,
    html[data-theme="light"] .auth-header h1 {
        color: var(--text);
    }

html[data-theme="light"] .auth-header p,
html[data-theme="light"] .auth-footer,
html[data-theme="light"] .auth-security {
    color: var(--muted);
}

html[data-theme="light"] .auth-input {
    background: var(--input-bg);
    color: var(--text);
    border-color: var(--border);
}

.email-spam-notice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 16px;
    padding: 12px 14px;
    border-radius: 10px;
    background: rgba(245, 158, 11, 0.10);
    border: 1px solid rgba(245, 158, 11, 0.25);
    color: #b45309;
    font-size: 13px;
    line-height: 1.5;
    text-align: left;
}

    .email-spam-notice i {
        margin-top: 2px;
        flex-shrink: 0;
    }

    .email-spam-notice strong {
        font-weight: 700;
    }