﻿/* ================================
   Authentication Layout
   ================================ */

.auth-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: radial-gradient( circle at top left, rgba(37, 99, 235, 0.08), transparent 35% ), var(--surface-soft);
}

.auth-header {
    height: 76px;
    padding: 0 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
}

.auth-brand {
    display: flex;
    align-items: center;
    gap: 11px;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 18px;
}

.auth-brand-mark {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    background: var(--brand-primary);
    color: white;
    font-weight: 700;
    box-shadow: var(--shadow-sm);
}

.auth-brand-name {
    white-space: nowrap;
}

.auth-header-link {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--text-secondary);
    font-size: 14px;
}

    .auth-header-link a {
        color: var(--brand-primary);
        font-weight: 600;
        text-decoration: none;
    }

        .auth-header-link a:hover {
            color: var(--brand-primary-hover);
        }

.auth-main {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 60px 5%;
}

.auth-content {
    width: 100%;
    max-width: 1120px;
    margin: auto;
    display: grid;
    grid-template-columns: 1fr 440px;
    gap: 90px;
    align-items: center;
}

.auth-intro {
    max-width: 580px;
}

.auth-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.08);
    color: var(--brand-primary);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 22px;
}

.auth-badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--brand-primary);
}

.auth-intro h1 {
    margin: 0;
    font-size: clamp(38px, 4vw, 58px);
    line-height: 1.08;
    letter-spacing: -1.8px;
    font-weight: 750;
    color: var(--text-primary);
}

    .auth-intro h1 span {
        display: block;
        color: var(--brand-primary);
    }

.auth-intro > p {
    max-width: 510px;
    margin: 24px 0 34px;
    color: var(--text-secondary);
    font-size: 17px;
    line-height: 1.7;
}

.auth-features {
    display: flex;
    flex-direction: column;
    gap: 17px;
}

.auth-feature {
    display: flex;
    align-items: center;
    gap: 14px;
}

.auth-feature-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    background: white;
    border: 1px solid var(--border);
    color: var(--brand-primary);
    font-size: 12px;
    font-weight: 700;
    box-shadow: var(--shadow-sm);
}

.auth-feature strong {
    display: block;
    font-size: 14px;
    color: var(--text-primary);
}

.auth-feature span {
    display: block;
    margin-top: 2px;
    font-size: 13px;
    color: var(--text-secondary);
}

.auth-form-wrapper {
    width: 100%;
}

.auth-form-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 38px;
    box-shadow: var(--shadow-md);
}

.auth-footer {
    padding: 20px 5%;
    text-align: center;
    color: var(--text-secondary);
    font-size: 12px;
}

/* ================================
   Authentication Form
   ================================ */

.auth-form-title {
    margin-bottom: 6px;
    font-size: 27px;
    font-weight: 700;
    color: var(--text-primary);
}

.auth-form-subtitle {
    margin-bottom: 28px;
    color: var(--text-secondary);
    font-size: 14px;
}

.auth-field {
    margin-bottom: 18px;
}

    .auth-field label {
        display: block;
        margin-bottom: 7px;
        color: var(--text-primary);
        font-size: 13px;
        font-weight: 600;
    }

.auth-input {
    width: 100%;
    height: 46px;
    padding: 0 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    outline: none;
    background: white;
    color: var(--text-primary);
    font-size: 14px;
    transition: border-color .15s ease, box-shadow .15s ease;
    box-sizing: border-box;
}

    .auth-input:focus {
        border-color: var(--brand-primary);
        box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.10);
    }

.auth-button {
    width: 100%;
    height: 46px;
    margin-top: 6px;
    border: 0;
    border-radius: var(--radius-md);
    background: var(--brand-primary);
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s ease, transform .15s ease;
}

    .auth-button:hover {
        background: var(--brand-primary-hover);
    }

    .auth-button:active {
        transform: translateY(1px);
    }

.auth-error {
    margin-bottom: 18px;
    padding: 11px 13px;
    border: 1px solid #fecaca;
    border-radius: var(--radius-md);
    background: #fef2f2;
    color: var(--danger);
    font-size: 13px;
}

.auth-form-footer {
    margin-top: 24px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 13px;
}

    .auth-form-footer a {
        color: var(--brand-primary);
        font-weight: 600;
        text-decoration: none;
    }
.register-terms {
    margin: 18px 0;
    color: var(--text-secondary);
    font-size: 12px;
    line-height: 1.6;
}

    .register-terms a {
        color: var(--brand-primary);
        font-weight: 600;
        text-decoration: none;
    }

        .register-terms a:hover {
            text-decoration: underline;
        }

.auth-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
}

    .auth-button:disabled {
        opacity: 0.7;
        cursor: not-allowed;
    }

.auth-button-spinner {
    width: 15px;
    height: 15px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: white;
    border-radius: 50%;
    animation: auth-spin 0.7s linear infinite;
}

@keyframes auth-spin {
    to {
        transform: rotate(360deg);
    }
}

.register-header-mobile {
    display: none;
}

.register-mobile-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 700;
}

@media (max-width: 900px) {

    .register-header-mobile {
        display: flex;
        justify-content: center;
        margin-bottom: 28px;
    }
}

/* =========================
   Login
   ========================= */

.login-page {
    width: 100%;
}

.login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 2px 0 20px;
    font-size: 13px;
}

.login-remember {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    cursor: pointer;
}

    .login-remember input {
        width: 15px;
        height: 15px;
        accent-color: var(--brand-primary);
    }

.login-options a {
    color: var(--brand-primary);
    font-weight: 600;
    text-decoration: none;
}

    .login-options a:hover {
        color: var(--brand-primary-hover);
        text-decoration: underline;
    }

.login-header-mobile {
    display: none;
}

.login-mobile-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 700;
}


@media (max-width: 900px) {

    .login-header-mobile {
        display: flex;
        justify-content: center;
        margin-bottom: 28px;
    }
}


@media (max-width: 600px) {

    .login-options {
        font-size: 12px;
    }
}

/* ================================
   Responsive
   ================================ */

@media (max-width: 900px) {

    .auth-content {
        grid-template-columns: 1fr;
        max-width: 500px;
        gap: 35px;
    }

    .auth-intro {
        text-align: center;
        max-width: none;
    }

        .auth-intro > p {
            margin-left: auto;
            margin-right: auto;
        }

    .auth-features {
        display: none;
    }
}

@media (max-width: 600px) {

    .auth-header {
        height: 68px;
        padding: 0 20px;
    }

    .auth-brand-name {
        font-size: 15px;
    }

    .auth-header-link span {
        display: none;
    }

    .auth-main {
        padding: 35px 18px;
    }

    .auth-form-card {
        padding: 28px 22px;
        border-radius: 18px;
    }

    .auth-intro h1 {
        font-size: 36px;
        letter-spacing: -1px;
    }
}
