/* Login Page Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font);
    background: linear-gradient(135deg, var(--hawx-teal) 0%, var(--hawx-teal-dark) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hide {
    display: none !important;
}

/* Redirecting View */
.redirecting-view {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--hawx-teal) 0%, var(--hawx-teal-dark) 100%);
    z-index: 1000;
}

.redirect-content {
    text-align: center;
    color: white;
}

.redirect-logo {
    width: 120px;
    margin-bottom: 24px;
}

.redirecting-view h1 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 16px;
    color: white;
}

.redirect-message {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 24px;
}

/* Login Wrapper */
.login-wrapper {
    width: 100%;
    max-width: 420px;
    padding: 20px;
}

/* Login Card */
.login-card {
    background: white;
    border-radius: 16px;
    padding: 48px 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    text-align: center;
}

.login-logo {
    width: 100px;
    margin-bottom: 24px;
}

.login-card h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 8px;
}

.login-subtitle {
    color: var(--gray-500);
    font-size: 15px;
    margin-bottom: 32px;
    line-height: 1.5;
}

/* Auth Status */
.auth-status {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    text-align: center;
}

.auth-status.info {
    background: var(--info-bg);
    color: var(--info-dark);
    border: 1px solid var(--info);
}

.auth-status.error {
    background: var(--error-bg);
    color: var(--error-dark);
    border: 1px solid var(--error);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    text-decoration: none;
}

.btn-login {
    width: 100%;
    padding: 16px 24px;
    font-size: 16px;
}

.btn-gold {
    background: var(--hawx-gold);
    color: var(--gray-800);
}

.btn-gold:hover {
    background: var(--hawx-gold-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(234, 183, 73, 0.4);
}

.btn-secondary {
    background: var(--gray-100);
    color: var(--gray-700);
}

.btn-secondary:hover {
    background: var(--gray-200);
}

.btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn.loading {
    position: relative;
    color: transparent;
}

.btn.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid var(--gray-800);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* Spinner */
.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto;
}

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

/* Responsive */
@media (max-width: 480px) {
    .login-card {
        padding: 32px 24px;
    }

    .login-card h1 {
        font-size: 24px;
    }

    .login-subtitle {
        font-size: 14px;
    }
}
