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

body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
}

.login-wrapper {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background-color: #1a1a2e;
}

.login-container {
    width: 100%;
    max-width: 450px;
}

.login-card {
    background: #16213e;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    padding: 2.5rem;
    animation: slideIn 0.5s ease-out;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.logo-container {
    margin-bottom: 1.5rem;
}

.logo {
    width: 100px;
    height: 100px;
    margin: 0 auto;
    background-image: url("img/logo-transport.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.login-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.5rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    line-height: 1.3;
}

.login-subtitle {
    font-size: 0.9rem;
    color: #a0aec0;
    margin-bottom: 0;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.login-form {
    margin-top: 1.5rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #e2e8f0;
    margin-bottom: 0.5rem;
}

.form-label i {
    color: #667eea;
    font-size: 1rem;
}

.password-input-wrapper {
    position: relative;
}

.input-field {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background-color: #0f1624;
    color: #ffffff !important;
}

.input-field:focus {
    outline: none;
    border-color: #667eea;
    background-color: #1a2332;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
    color: #ffffff !important;
}

.input-field::placeholder {
    color: #718096 !important;
}

.input-field:-webkit-autofill,
.input-field:-webkit-autofill:hover,
.input-field:-webkit-autofill:focus {
    -webkit-text-fill-color: #ffffff !important;
    -webkit-box-shadow: 0 0 0px 1000px #0f1624 inset !important;
    box-shadow: 0 0 0px 1000px #0f1624 inset !important;
}

.password-toggle-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #a0aec0;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 4px 8px;
    transition: color 0.3s ease;
    z-index: 10;
}

.password-toggle-btn:hover {
    color: #667eea;
}

.alert {
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    border: none;
    animation: slideDown 0.3s ease-out;
}

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

.alert-danger {
    background-color: rgba(220, 53, 69, 0.2);
    color: #ff6b7a;
    border-left: 4px solid #dc3545;
}

.alert-danger i {
    font-size: 1.1rem;
}

.login-button {
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    margin-top: 0.5rem;
}

.login-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

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

.login-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.button-icon {
    transition: transform 0.3s ease;
}

.login-button:hover:not(:disabled) .button-icon {
    transform: translateX(4px);
}

.visually-hidden {
    display: none !important;
}

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.15em;
}

/* Responsive Design */
@media (max-width: 480px) {
    .login-card {
        padding: 2rem 1.5rem;
        border-radius: 12px;
    }
    
    .login-title {
        font-size: 1.25rem;
    }
    
    .logo {
        width: 80px;
        height: 80px;
    }
}
