/* Modern Login Page Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
}

.login-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    max-width: 900px;
    width: 90%;
    min-height: 500px;
    backdrop-filter: blur(10px);
}

.login-header {
    background: linear-gradient(135deg, #0a71e9 0%, #0a71e9 100%);
    padding: 30px;
    text-align: center;
    color: white;
}

.login-header h2 {
    margin: 0;
    font-size: 28px;
    font-weight: 600;
}

.login-header p {
    margin: 10px 0 0 0;
    opacity: 0.9;
    font-size: 16px;
}

.login-body {
    padding: 40px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
    font-size: 14px;
}

.input-group {
    position: relative;
}

.input-group .form-control {
    width: 100%;
    padding: 15px 50px 15px 20px;
    border: 2px solid #e1e8ed;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.input-group .form-control:focus {
    border-color: #0a71e9;
    background: white;
    box-shadow: 0 0 0 3px rgba(10, 113, 233, 0.1);
    outline: none;
}

.input-group .input-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    font-size: 18px;
}

.password-toggle {
    cursor: pointer;
    transition: color 0.3s ease;
}

.password-toggle:hover {
    color: #0a71e9;
}

.btn-login {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #0a71e9 0%, #0a71e9 100%);
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(10, 113, 233, 0.3);
}

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

.forgot-password {
    text-align: center;
    margin-top: 20px;
}

.forgot-password a {
    color: #0a71e9;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.forgot-password a:hover {
    color: #0a71e9;
    text-decoration: underline;
}

.alert {
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 25px;
    border: none;
}

.alert-danger {
    background: #ffebee;
    color: #c62828;
    border-left: 4px solid #c62828;
}

.alert-success {
    background: #e8f5e8;
    color: #2e7d32;
    border-left: 4px solid #2e7d32;
}

/* Responsive Design */
@media (max-width: 768px) {
    .login-container {
        margin: 20px;
        width: calc(100% - 40px);
        min-height: auto;
    }

    .login-header {
        padding: 20px;
    }

    .login-header h2 {
        font-size: 24px;
    }

    .login-body {
        padding: 30px 20px;
    }

    .form-group label {
        font-size: 13px;
    }

    .input-group .form-control {
        padding: 12px 45px 12px 15px;
        font-size: 15px;
    }

    .btn-login {
        padding: 12px;
        font-size: 15px;
    }

}

@media (max-width: 480px) {
    .login-container {
        margin: 10px;
        width: calc(100% - 20px);
    }

    .login-header {
        padding: 15px;
    }

    .login-header h2 {
        font-size: 20px;
    }

    .login-body {
        padding: 20px 15px;
    }

    .form-group {
        margin-bottom: 20px;
    }
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-container {
    animation: fadeInUp 0.6s ease-out;
}

/* Loading state */
.btn-login.loading {
    position: relative;
    color: transparent;
}

.btn-login.loading::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

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

/* Focus states for accessibility */
.form-control:focus + .input-icon {
    color: #0a71e9;
}

/* Error states */
.form-group.error .form-control {
    border-color: #dc3545;
    background: white;
}

.form-group.error .form-control:focus {
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

/* Validation error messages */
.invalid-feedback {
    display: block !important;
    color: #dc3545;
    font-size: 14px;
    margin-top: 5px;
    padding-left: 0;
    font-weight: 500;
    line-height: 1.4;
    visibility: visible !important;
    opacity: 1 !important;
}

.invalid-feedback i {
    margin-right: 8px;
    display: inline-block;
    vertical-align: baseline;
    font-size: 12px;
}