/* ================================================
   ToMires Auth Pages — auth.css
   ================================================ */

/* ===== Auth Body ===== */

.auth-body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    min-height: 100vh;
}

/* ===== Auth Page Layout ===== */

.auth-page {
    display: flex;
    flex-direction: row;
    min-height: 100vh;
}

/* ===== Left Panel (Form) ===== */

.auth-form-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-8) var(--space-6);
    background: var(--bg);
}

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

/* ===== Form Header ===== */

.auth-mobile-logo {
    display: none;
    align-items: center;
    gap: var(--space-2);
    margin-bottom: var(--space-6);
    font-size: var(--font-size-xl);
    font-weight: 800;
    color: var(--primary-dark);
}

.auth-mobile-logo-text {
    font-size: var(--font-size-xl);
    font-weight: 800;
    color: var(--primary-dark);
}

.auth-form-header {
    margin-bottom: var(--space-8);
}

.auth-title {
    font-size: var(--font-size-3xl);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: var(--space-2);
    letter-spacing: -0.02em;
}

.auth-subtitle {
    font-size: var(--font-size-base);
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===== Auth Form ===== */

.auth-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
}

/* ===== Input with Icon ===== */

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    right: var(--space-4);
    font-size: 1rem;
    pointer-events: none;
    z-index: 1;
}

.auth-input {
    padding-right: 2.75rem;
    height: 48px;
    border-radius: var(--radius-md);
    border: 1.5px solid var(--border);
    font-size: var(--font-size-base);
    transition: var(--transition-fast);
    text-align: center;
}

.auth-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    outline: none;
}

/* ===== Auth Options (Remember Me) ===== */

.auth-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.remember-me-label {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    cursor: pointer;
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    user-select: none;
}

.remember-me-checkbox {
    display: none;
}

.remember-me-custom {
    width: 18px;
    height: 18px;
    border: 2px solid var(--border-dark);
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
    flex-shrink: 0;
}

.remember-me-checkbox:checked + .remember-me-custom {
    background: var(--primary);
    border-color: var(--primary);
}

.remember-me-checkbox:checked + .remember-me-custom::after {
    content: '✓';
    color: white;
    font-size: 12px;
    font-weight: 700;
}

/* ===== Error Message ===== */

.auth-error {
    color: var(--danger);
    font-size: var(--font-size-sm);
    min-height: 1.25em;
    padding: 0;
    background: none;
    border: none;
    border-radius: 0;
    transition: var(--transition-fast);
}

.auth-error:not(:empty) {
    background: var(--danger-light);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: var(--radius-md);
    padding: var(--space-3) var(--space-4);
}

/* ===== Submit Button ===== */

.auth-submit-btn {
    width: 100%;
    height: 50px;
    background: linear-gradient(
        135deg,
        var(--primary) 0%,
        #1d4ed8 100%
    );
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: var(--font-size-base);
    font-weight: 700;
    font-family: var(--font-family);
    cursor: pointer;
    transition: var(--transition-fast);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.35);
    letter-spacing: 0.02em;
}

.auth-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45);
}

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

/* ===== Auth Switch ===== */

.auth-switch {
    text-align: center;
    margin-top: var(--space-6);
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
}

.auth-switch-link {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
    margin-right: var(--space-1);
}

.auth-switch-link:hover {
    text-decoration: underline;
}

/* ===== Right Panel (Branding) ===== */

.auth-brand-panel {
    width: 45%;
    background: radial-gradient(760px 420px at 80% -10%, rgba(216, 155, 60, 0.20), transparent 60%), radial-gradient(600px 400px at 10% 110%, rgba(216, 155, 60, 0.10), transparent 60%), linear-gradient(180deg, #1a1776 0%, #4c4b63 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-12);
    position: relative;
    overflow: hidden;
}

.auth-brand-panel::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle at 30% 50%,
        rgba(37, 99, 235, 0.15) 0%,
        transparent 60%
    );
    pointer-events: none;
}

.auth-brand-panel::after {
    content: '';
    position: absolute;
    bottom: -20%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(
        circle,
        rgba(245, 158, 11, 0.08) 0%,
        transparent 70%
    );
    pointer-events: none;
}

.auth-brand-content {
    position: relative;
    z-index: 1;
    max-width: 380px;
}

.auth-brand-logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-10);
}

.auth-brand-logo-icon {
    font-size: 2.5rem;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
    width: 90px;
    border-radius: 50px;
}

.auth-brand-logo-text {
    font-size: var(--font-size-4xl);
    font-weight: 900;
    color: white;
    letter-spacing: -0.03em;
}

.auth-brand-title {
    font-size: var(--font-size-3xl);
    font-weight: 800;
    color: white;
    margin-bottom: var(--space-4);
    letter-spacing: -0.02em;
    line-height: 1.3;
}

.auth-brand-subtitle {
    font-size: var(--font-size-base);
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.8;
    margin-bottom: var(--space-10);
}

/* ===== Feature Items ===== */

.auth-features {
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
}

.auth-feature-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-4);
    padding: var(--space-4);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
}

.auth-feature-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.auth-feature-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
}

.auth-feature-title {
    font-size: var(--font-size-sm);
    font-weight: 700;
    color: white;
    margin-bottom: 4px;
}

.auth-feature-desc {
    font-size: var(--font-size-xs);
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.5;
}

/* ===== Responsive (Mobile) ===== */

@media (max-width: 768px) {

    .auth-page {
        flex-direction: column;
        min-height: 100vh;
    }

    .auth-brand-panel {
        width: 100%;
        min-height: auto;
        padding: var(--space-6) var(--space-5);
        position: sticky;
        top: 0;
        z-index: 10;
        flex-shrink: 0;
    }

    .auth-brand-panel::before,
    .auth-brand-panel::after {
        display: none;
    }

    .auth-brand-content {
        max-width: 100%;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: var(--space-4);
    }

    .auth-brand-logo {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: var(--space-2);
        margin-bottom: 0;
        flex-shrink: 0;
    }

    .auth-brand-logo-icon {
        font-size: 1.5rem;
        width: 50px;
        border-radius: 50px;
    }

    .auth-brand-logo-text {
        font-size: var(--font-size-xl);
        font-weight: 900;
    }

    .auth-brand-title {
        font-size: var(--font-size-sm);
        font-weight: 600;
        margin-bottom: 0;
        color: rgba(255, 255, 255, 0.9);
        flex: 1;
        text-align: left;
    }

    .auth-brand-subtitle {
        display: none;
    }

    .auth-features {
        display: none;
    }

    .auth-form-panel {
        flex: 1;
        padding: var(--space-6) var(--space-4);
        overflow-y: auto;
        align-items: flex-start;
    }

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

    .auth-title {
        font-size: var(--font-size-2xl);
    }

    .auth-form-container {
        width: 100%;
    }
}