/* Modern Login Page Styles */

/* Base Styles */
body {
    background: linear-gradient(135deg, #0056b3 0%, #004494 100%);
    min-height: 100vh;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../img/pattern.jpeg') repeat;
    opacity: 0.1;
    pointer-events: none;
}

/* Login Container */
.login-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
    z-index: 1;
}

/* Login Card */
.login-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Login Header */
.login-header {
    background: #0056b3;
    padding: 30px 20px;
    text-align: center;
    color: white;
}

.login-header .logo {
    width: 80px;
    height: auto;
    margin-bottom: 15px;
}

.login-title {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.login-subtitle {
    margin: 5px 0 0;
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Login Body */
.login-body {
    padding: 30px;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-field label {
    font-weight: 500;
    color: #495057;
    font-size: 0.95rem;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    border-radius: 8px;
    background: #f8f9fa;
    transition: all 0.3s ease;
    border: 1px solid #dee2e6;
}

.input-wrapper:focus-within {
    background: white;
    border-color: #0056b3;
    box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.15);
}

.field-icon {
    position: absolute;
    left: 12px;
    color: #6c757d;
    font-size: 1rem;
}

.input-wrapper input {
    width: 100%;
    padding: 12px 12px 12px 40px;
    border: none;
    background: transparent;
    font-size: 1rem;
    color: #495057;
    outline: none;
}

.toggle-password {
    background: none;
    border: none;
    color: #6c757d;
    padding: 0 12px;
    cursor: pointer;
    transition: color 0.2s;
}

.toggle-password:hover {
    color: #0056b3;
}

/* Alert */
.alert {
    border-radius: 8px;
    padding: 12px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
}

/* Forgot Password Link */
.forgot-password {
    color: #6c757d;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.forgot-password:hover {
    color: #0056b3;
    text-decoration: underline;
}

.forgot-password i {
    font-size: 0.85rem;
}

/* Login Button */
.login-button {
    background: #0056b3;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 14px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-button:hover {
    background: #004494;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 86, 179, 0.2);
}

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

/* Login Footer */
.login-footer {
    padding: 15px;
    text-align: center;
    border-top: 1px solid #eee;
}

.login-footer p {
    margin: 0;
    color: #6c757d;
    font-size: 0.85rem;
}

/* Responsive Adjustments */
@media (max-width: 480px) {
    .login-container {
        padding: 15px;
    }
    
    .login-header {
        padding: 25px 15px;
    }
    
    .login-body {
        padding: 25px 20px;
    }
    
    .login-title {
        font-size: 1.5rem;
    }
    
    .login-subtitle {
        font-size: 1rem;
    }
}

.alert-danger {
    background: #fff2f2;
    border: none;
    border-radius: 8px;
    color: #dc3545;
    padding: 1rem;
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .card-body {
        padding: 1.5rem !important;
    }
    
    .card-header {
        padding: 1.5rem !important;
    }
}
