/* css/login.css */

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

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, white #60a5fa);
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.login-container {
    width: 100%;
    max-width: 430px;
    padding: 20px;
}

.login-card {
    background: #fff;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    animation: fadeIn 0.6s ease;
}

.login-card h2 {
    font-weight: 700;
    color: #2563eb;
    margin-bottom: 5px;
}

.login-card h2 span {
    color: #60a5fa;
}

.login-card p {
    color: #777;
    font-size: 0.95rem;
}

/* Form Controls */
.form-control {
    height: 50px;
    border-radius: 10px;
    border: 2px solid #e9ecef;
    padding: 10px 15px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.25);
}

.form-control::placeholder {
    color: #adb5bd;
    font-size: 0.9rem;
}

/* Input Group */
.input-group .form-control {
    border-radius: 10px 0 0 10px;
    border-right: none;
}

.input-group .btn-outline-secondary {
    border-radius: 0 10px 10px 0;
    border: 2px solid #e9ecef;
    border-left: none;
    background: white;
    color: #6c757d;
    height: 50px;
    width: 50px;
    transition: all 0.3s ease;
}

.input-group .btn-outline-secondary:hover {
    background: #f8f9fa;
    color: #2563eb;
}

.input-group .btn-outline-secondary:focus {
    box-shadow: none;
}

/* Buttons */
.btn {
    height: 50px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #2563eb, #60a5fa);
    border: none;
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
    background: linear-gradient(135deg, #1d4ed8, #3b82f6);
}

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

/* Links */
a {
    text-decoration: none;
    color: #2563eb;
    transition: color 0.3s ease;
}

a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

/* Form Check */
.form-check {
    display: flex;
    align-items: center;
}

.form-check-input {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    cursor: pointer;
    border: 2px solid #d1d5db;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.form-check-input:checked {
    background-color: #2563eb;
    border-color: #2563eb;
}

.form-check-label {
    color: #6c757d;
    font-size: 0.9rem;
    cursor: pointer;
}

/* Alerts */
#alertBox {
    margin-bottom: 20px;
}

.alert {
    border-radius: 10px;
    padding: 12px 15px;
    font-size: 0.9rem;
    animation: slideDown 0.3s ease;
    border: none;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
}

.alert-danger {
    background: #fee2e2;
    color: #991b1b;
}

.alert-warning {
    background: #fef3c7;
    color: #92400e;
}

.alert-info {
    background: #dbeafe;
    color: #1e40af;
}

.alert .btn-close {
    font-size: 0.7rem;
    padding: 1rem;
}

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

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

/* Responsive Design */
@media (max-width: 480px) {
    .login-container {
        padding: 10px;
    }
    
    .login-card {
        padding: 30px 20px;
        border-radius: 16px;
    }
    
    .login-card h2 {
        font-size: 1.5rem;
    }
    
    .form-control,
    .btn,
    .input-group .btn-outline-secondary {
        height: 45px;
    }
    
    .input-group .btn-outline-secondary {
        width: 45px;
    }
}

@media (max-width: 380px) {
    .login-card {
        padding: 20px 15px;
    }
    
    .d-flex.justify-content-between {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 10px;
    }
}

/* Loading Spinner */
.spinner-border {
    width: 1.2rem;
    height: 1.2rem;
    border-width: 0.15em;
}

/* Password Toggle Icon */
#togglePassword i {
    font-size: 1.1rem;
}

/* Remember Me Checkbox */
.form-check-input:focus {
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.25);
}

/* Footer Text */
.text-center.mt-4 {
    color: #6c757d;
    font-size: 0.9rem;
}

.text-center.mt-4 a {
    font-weight: 500;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: #2563eb;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #1d4ed8;
}