/* Login page specific styles */

/* Disable transitions on page load to prevent animation */
.login-page-loading * {
    transition: none !important;
    animation: none !important;
}

/* Make header transparent on login page */
.login-page .site-header {
    background: transparent !important;
    box-shadow: none !important;
}

/* Login Section */
.login-section {
    padding: 0;
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.login-container {
    max-width: 480px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

/* Login Form Card - Glassmorphism effect */
.login-form-card {
    background: rgba(254, 251, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 48px;
    box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.3), 0px 2px 6px 2px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0,0,0,0.08);
    position: relative;
}

/* Login Instruction Text */
.login-instruction {
    text-align: center;
    margin-bottom: 24px;
}

.login-instruction p {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    color: #44474f;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Form Styling */
.login-form {
    margin-bottom: 0;
}

.form-group {
    position: relative;
    margin-bottom: 16px;
}

/* Input Styling - base styles inherited from forms.css */

.form-group input {
    width: 100%;
    padding: 16px 16px 16px 68px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    font-weight: bold;
    font-family: 'Oswald', Arial, sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: #ffffff;
    color: #333333;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #3498db;
}

.form-group input::placeholder {
    color: rgba(51, 51, 51, 0.6);
    font-weight: bold;
    text-transform: uppercase;
}

/* Error Message */
.error-message {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 16px;
    color: #c53030;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Form Actions */
.form-actions {
    margin-top: 24px;
}

.form-actions-row {
    display: flex;
    gap: 16px;
}

.form-actions-row .btn {
    flex: 1;
}

.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 16px 32px;
    border: none;
    border-radius: 8px;
    font-family: 'Oswald', Arial, sans-serif;
    font-weight: 500;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: #3498db;
    color: white;
    box-shadow: 0px 2px 4px 0px rgba(0, 0, 0, 0.15);
}

.btn-primary:hover {
    background: #64b5f6;
    transform: translateY(-2px);
    box-shadow: 0px 4px 8px 0px rgba(0, 0, 0, 0.2);
}

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

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

.btn-secondary {
    background: #ffffff;
    color: #333333;
    border: 2px solid #e9ecef;
    box-shadow: 0px 2px 4px 0px rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover {
    background: #f8f9fa;
    border-color: #dee2e6;
    transform: translateY(-2px);
    box-shadow: 0px 4px 8px 0px rgba(0, 0, 0, 0.15);
}

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

.btn .icon {
    width: 20px;
    height: 20px;
}

/* Loading State */
.loading-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fefbff;
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #e9ecef;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    margin-top: 16px;
    font-size: 16px;
    font-weight: bold;
    color: #44474f;
    text-transform: uppercase;
}

/* Prevent browser autofill background color changes */
.form-group input:-webkit-autofill,
.form-group input:-webkit-autofill:hover,
.form-group input:-webkit-autofill:focus,
.form-group input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px #ffffff inset !important;
    -webkit-text-fill-color: #333333 !important;
    background-color: #ffffff !important;
    background: #ffffff !important;
}

/* Firefox autofill prevention */
.form-group input:-moz-autofill {
    background-color: #ffffff !important;
    background: #ffffff !important;
}

/* Responsive Design */
@media (max-width: 600px) {
    .login-section {
        padding: 32px 0 48px;
    }

    .login-container {
        padding: 0 16px;
    }

    .login-form-card {
        padding: 32px 24px;
    }

    .btn {
        padding: 14px 24px;
        font-size: 16px;
    }
}

/* Accessibility and Motion Preferences */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .login-form-card {
        border-width: 2px;
    }

    .form-group input {
        border-width: 2px;
    }
}
