/* Modern Login Page Styles */

* {
    box-sizing: border-box;
}

.login-body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow: hidden;
}

.login-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, #00447A 0%, #7CA9AC 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.login-container {
    width: 100%;
    max-width: 420px;
    padding: 20px;
    animation: slideUp 0.8s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 
        0 25px 45px rgba(0, 68, 122, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.logo-container {
    margin-bottom: 20px;
}

.brand-title {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #00447A, #7CA9AC);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    letter-spacing: -0.02em;
}

.brand-subtitle {
    color: #6b7280;
    font-size: 0.95rem;
    font-weight: 500;
    margin: 5px 0 0 0;
    opacity: 0.8;
}

.welcome-text {
    text-align: center;
    margin-bottom: 30px;
}

.welcome-text h2 {
    font-size: 1.75rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 8px 0;
    letter-spacing: -0.01em;
}

.welcome-text p {
    color: #6b7280;
    font-size: 0.95rem;
    margin: 0;
    opacity: 0.9;
}

.login-form {
    width: 100%;
}

.form-group {
    margin-bottom: 24px;
    position: relative;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 8px;
    transition: color 0.2s ease;
}

.focused .form-label {
    color: #00447A;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    font-size: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    background: #ffffff;
    transition: all 0.3s ease;
    font-family: inherit;
    outline: none;
}

.form-input:focus {
    border-color: #00447A;
    box-shadow: 0 0 0 3px rgba(0, 68, 122, 0.1);
    transform: translateY(-1px);
}

.form-input::placeholder {
    color: #9ca3af;
    opacity: 1;
}

.form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-checkbox {
    appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid #d1d5db;
    border-radius: 4px;
    background: #ffffff;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
}

.form-checkbox:checked {
    background: #00447A;
    border-color: #00447A;
}

.form-checkbox:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.checkbox-label {
    font-size: 0.875rem;
    color: #6b7280;
    cursor: pointer;
    user-select: none;
}

.login-button {
    width: 100%;
    padding: 16px;
    font-size: 1rem;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #00447A 0%, #7CA9AC 100%);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    letter-spacing: 0.025em;
    box-shadow: 0 4px 15px rgba(0, 68, 122, 0.4);
}

.login-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 68, 122, 0.6);
    background: linear-gradient(135deg, #003366 0%, #6B9699 100%);
}

.login-button:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(0, 68, 122, 0.4);
}

.error-message {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 6px;
    display: block;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 480px) {
    .login-container {
        padding: 15px;
        max-width: 100%;
    }
    
    .login-card {
        padding: 30px 25px;
        border-radius: 16px;
    }
    
    .brand-title {
        font-size: 2rem;
    }
    
    .welcome-text h2 {
        font-size: 1.5rem;
    }
    
    .form-input {
        padding: 12px 14px;
    }
    
    .login-button {
        padding: 14px;
    }
}

/* Loading state animation */
.login-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Focus visible for accessibility */
.login-button:focus-visible,
.form-input:focus-visible,
.form-checkbox:focus-visible {
    outline: 2px solid #00447A;
    outline-offset: 2px;
}

/* Smooth transitions for all interactive elements */
button, input, label {
    transition: all 0.2s ease;
}

/* Hide default ASP.NET validation summary if present */
.validation-summary-errors {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 16px;
    color: #dc2626;
    font-size: 0.875rem;
}

/* Custom scrollbar for any overflow */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 68, 122, 0.3);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 68, 122, 0.5);
} 