/* Login Page Styles */
:root {
    --primary-color: #007bff;
    --primary-dark: #0056b3;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --light-bg: #f8f9fa;
}

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

html, body {
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.login-container {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.login-box {
    background: white;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    padding: 40px;
    animation: slideInUp 0.5s ease-out;
}

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

/* Logo */
.login-header .logo {
    display: inline-block;
    padding: 15px 20px;
    background: linearBgradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    animation: fadeInDown 0.5s ease-out;
}

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

.login-header h1 {
    color: #333;
    margin-bottom: 8px;
    font-weight: 700;
}

.login-header p {
    font-size: 14px;
    color: #999;
}

/* Form Fields */
.form-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-control,
.input-group-text {
    border: 1.5px solid #e0e0e0;
    border-radius: 8px;
    height: 45px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-control {
    padding: 10px 15px;
}

.form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
    outline: none;
}

.input-group-text {
    background: #f8f9fa !important;
    color: #667eea;
    border: 1.5px solid #e0e0e0;
}

.input-group .form-control {
    border-left: none;
}

.input-group .input-group-text:first-child {
    border-right: none;
}

/* Toggle Password Button */
#togglePassword {
    border-left: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

#togglePassword:hover {
    background: #e9ecef !important;
}

#togglePassword:focus {
    box-shadow: none;
}

/* Checkbox */
.form-check-input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    cursor: pointer;
    border: 1.5px solid #e0e0e0;
    transition: all 0.3s ease;
}

.form-check-input:checked {
    background-color: #667eea;
    border-color: #667eea;
}

.form-check-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.form-check-label {
    user-select: none;
    cursor: pointer;
    color: #666;
}

/* Links */
a {
    transition: all 0.3s ease;
}

a:hover {
    color: #764ba2 !important;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    height: 45px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

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

.btn-light {
    background: #f8f9fa !important;
    border: 1.5px solid #e0e0e0;
    color: #667eea;
    transition: all 0.3s ease;
}

.btn-light:hover,
.btn-light:focus {
    background: #e9ecef !important;
    border-color: #667eea;
    color: #667eea;
    box-shadow: none;
}

/* Alerts */
.alert {
    border: none;
    border-radius: 8px;
    padding: 12px 15px;
    font-size: 14px;
    margin-bottom: 20px;
    animation: slideInDown 0.3s ease-out;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
}

.alert i {
    margin-right: 8px;
}

.btn-close {
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.btn-close:hover {
    opacity: 1;
}

/* Error Messages */
.text-danger {
    font-size: 13px;
    margin-top: 5px;
}

.text-danger i {
    margin-right: 4px;
}

/* Demo Credentials */
.alert-info {
    font-size: 13px;
    padding: 12px;
}

.alert-info code {
    background: rgba(0, 0, 0, 0.05);
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
    color: #0c5460;
}

/* Footer */
.text-center p {
    font-size: 12px;
    margin-top: 15px;
}

/* Responsive Design */
@media (max-width: 576px) {
    .login-box {
        padding: 30px 20px;
    }

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

    .login-header p {
        font-size: 12px;
    }

    .form-control,
    .input-group-text,
    .btn-primary {
        font-size: 13px;
        height: 42px;
    }

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

    .alert {
        font-size: 12px;
    }
}

/* Loading State */
.btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-primary:disabled:hover {
    transform: none;
    box-shadow: none;
}

/* Animations */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.loading {
    animation: pulse 1.5s ease-in-out infinite;
}
