:root {
    --primary: #06b6d4; /* Cyan for Driver */
    --primary-dark: #0891b2;
    --bg-color: #0c1a2f;
    --surface: rgba(12, 26, 47, 0.7);
    --surface-hover: rgba(15, 33, 59, 0.85);
    --border: rgba(255, 255, 255, 0.12);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Outfit', sans-serif; }

body {
    background: #000 url('../img/mydrivers_login_premium.png') no-repeat center center fixed;
    background-size: cover;
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
}

/* Refined overlay for better visibility of the background image */
body::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at center, rgba(12, 26, 47, 0.2), rgba(12, 26, 47, 0.7));
    z-index: 1;
}

.login-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 440px;
    background: rgba(12, 26, 47, 0.65); /* Made more transparent */
    backdrop-filter: blur(15px); /* Slightly reduced blur */
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--border);
    border-radius: 32px;
    padding: 50px 40px;
    box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.6);
    animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

.logo-area {
    text-align: center;
    margin-bottom: 35px;
}

.logo-img {
    width: 220px;
    height: auto;
    margin-bottom: 25px;
    filter: drop-shadow(0 0 15px rgba(6, 182, 212, 0.25));
}

h1 {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 5px;
    letter-spacing: 0.5px;
    font-family: 'Barlow Condensed', sans-serif;
    text-transform: uppercase;
}

.subtitle { 
    color: var(--text-muted); 
    font-size: 0.85rem; 
    text-transform: uppercase; 
    letter-spacing: 3px; 
    font-weight: 600;
}

.input-group { margin-bottom: 20px; position: relative; }

.input-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1rem;
    transition: color 0.3s;
}

.form-control {
    width: 100%;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid var(--border);
    color: var(--text-main);
    padding: 16px 16px 16px 52px;
    border-radius: 18px;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s;
    font-weight: 400;
}

.form-control:focus {
    border-color: var(--primary);
    background: rgba(0, 0, 0, 0.6);
    box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.15);
}

.form-control:focus + .input-icon { color: var(--primary); }

.toggle-pw {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 5px;
    font-size: 0.9rem;
}

.btn-submit {
    width: 100%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    border: none;
    padding: 18px;
    border-radius: 18px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin-top: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    box-shadow: 0 10px 25px rgba(6, 182, 212, 0.35);
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(6, 182, 212, 0.45);
}

.btn-submit:active { transform: translateY(-1px); }

.btn-submit.btn-loading {
    opacity: 0.8 !important;
    pointer-events: none !important;
}

.btn-submit.btn-success { background: #10b981 !important; box-shadow: 0 10px 25px rgba(16, 185, 129, 0.35); }
.btn-submit.btn-error { background: #ef4444 !important; box-shadow: 0 10px 25px rgba(239, 68, 68, 0.35); }

.form-extras {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 0.85rem;
    color: var(--text-muted);
    padding: 0 5px;
}

.checkbox-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.checkbox-wrap input { accent-color: var(--primary); }

.forgot-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.alert-error, .alert-info {
    padding: 16px;
    border-radius: 16px;
    margin-bottom: 25px;
    font-size: 0.85rem;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    animation: fadeIn 0.4s ease;
}

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

.alert-error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: #fca5a5;
}

.brand-footer {
    text-align: center;
    margin-top: 45px;
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    line-height: 1.6;
}

@media (max-width: 480px) {
    .login-container { padding: 40px 25px; border-radius: 28px; }
}
