/* ========================================
   AUTH PAGE STYLES
   ======================================== */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #172136 0%, #1a2950 50%, #172136 100%);
    padding: 1rem;
    font-family: 'Montserrat', sans-serif;
}

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

.auth-card {
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    overflow: hidden;
}

.auth-header {
    text-align: center;
    padding: 2.5rem 2rem 1.5rem;
}

.auth-logo {
    width: 80px;
    height: auto;
    margin-bottom: 1.25rem;
}

.auth-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #172136;
    margin-bottom: 0.375rem;
}

.auth-subtitle {
    font-size: 0.875rem;
    color: #64748b;
    font-weight: 500;
}

.auth-body {
    padding: 0 2rem 2rem;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.auth-field {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.auth-field label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #334155;
}

.auth-field input {
    padding: 0.625rem 0.875rem;
    font-size: 0.875rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 0.5rem;
    font-family: 'Montserrat', sans-serif;
    color: #1e293b;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-field input:focus {
    outline: none;
    border-color: #1870fe;
    box-shadow: 0 0 0 3px rgba(24, 112, 254, 0.15);
}

.auth-field input::placeholder {
    color: #94a3b8;
}

.auth-submit {
    padding: 0.75rem;
    font-size: 0.9375rem;
    font-weight: 700;
    color: #fff;
    background: #1870fe;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    transition: background 0.2s ease;
    margin-top: 0.5rem;
}

.auth-submit:hover {
    background: #1560d6;
}

.auth-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.auth-error {
    background: rgba(239, 68, 68, 0.08);
    color: #ef4444;
    padding: 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 500;
    text-align: center;
    display: none;
}

.auth-error.show {
    display: block;
}

.auth-footer {
    text-align: center;
    padding: 1.5rem 2rem;
    border-top: 1px solid #f1f5f9;
}

.auth-footer p {
    font-size: 0.8125rem;
    color: #94a3b8;
}

.auth-footer a {
    color: #1870fe;
    font-weight: 600;
    text-decoration: none;
}

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

.auth-tabs {
    display: flex;
    border-bottom: 2px solid #f1f5f9;
    margin-bottom: 1.5rem;
}

.auth-tab {
    flex: 1;
    padding: 0.75rem;
    text-align: center;
    font-size: 0.875rem;
    font-weight: 600;
    color: #94a3b8;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s ease;
    background: none;
    border-top: none;
    border-left: none;
    border-right: none;
    font-family: 'Montserrat', sans-serif;
}

.auth-tab:hover {
    color: #475569;
}

.auth-tab.active {
    color: #1870fe;
    border-bottom-color: #1870fe;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1rem 0;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

.auth-divider span {
    font-size: 0.75rem;
    color: #94a3b8;
    font-weight: 500;
}

/* Loading state for auth */
.auth-loading {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: auth-spin 0.6s linear infinite;
    margin-right: 0.5rem;
    vertical-align: middle;
}

@keyframes auth-spin {
    to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 480px) {
    .auth-header {
        padding: 2rem 1.5rem 1rem;
    }

    .auth-body {
        padding: 0 1.5rem 1.5rem;
    }

    .auth-footer {
        padding: 1rem 1.5rem;
    }
}
