:root {
    --primary-color: #6c757d;
    --secondary-color: #0d6efd;
    --accent-red: #dc3545;
    --success-color: #27ae60;
    --hover-color: #5a6268;
    --text-gray: #6c757d;
}

body {
    background: linear-gradient(135deg, #f5f7fa 0%, #e9ecef 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

.login-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    padding: 40px;
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo-section {
    text-align: center;
}

.logo-img {
    height: 50px;
    width: auto;
    margin-bottom: 40px;
}

.form-control {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px 15px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.1);
}

.form-label {
    color: var(--text-gray);
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.input-group {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    z-index: 10;
}

.form-control.with-icon {
    padding-left: 45px;
}

.btn-login {
    background-color: var(--secondary-color);
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    padding: 12px;
    width: 100%;
    font-size: 1rem;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.btn-login:hover {
    background-color: #0a58ca;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(13, 110, 253, 0.3);
}

.forgot-password {
    text-align: right;
    margin-top: 10px;
}

.forgot-password a {
    color: var(--secondary-color);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.forgot-password a:hover {
    text-decoration: underline;
}

.divider {
    text-align: center;
    margin: 30px 0 20px;
    position: relative;
}

.divider::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 1px;
    background: #e5e7eb;
}

.divider span {
    background: white;
    padding: 0 15px;
    color: #9ca3af;
    font-size: 0.85rem;
    position: relative;
}

.footer-text {
    text-align: center;
    margin-top: 30px;
    color: #9ca3af;
    font-size: 0.85rem;
}

.footer-text a {
    color: var(--secondary-color);
    text-decoration: none;
}

.footer-text a:hover {
    text-decoration: underline;
}

.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: spinner 0.8s linear infinite;
}

@keyframes spinner {
    to { transform: rotate(360deg); }
}

.alert {
    border-radius: 8px;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

@media (max-width: 576px) {
    .login-card {
        padding: 30px 20px;
    }
    
    .logo-img {
        height: 40px;
    }
    
    .welcome-text {
        font-size: 1.25rem;
    }
}