/* Modern Technician Login - Glassmorphism & Animated Background */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&display=swap');

:root {
    --primary-color: #004E7B;
    /* Eztrack Blue */
    --accent-color: #F49C23;
    /* Eztrack Orange */
    --primary-gradient: linear-gradient(135deg, #004E7B 0%, #002d47 100%);
    --accent-gradient: linear-gradient(135deg, #F49C23 0%, #d47e0d 100%);
    --glass-bg: rgba(255, 255, 255, 0.15);
    --glass-border: rgba(255, 255, 255, 0.2);
    --text-light: #f8fafc;
    --font-main: 'Outfit', sans-serif;
}

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

body {
    font-family: var(--font-main);
    background: #004E7B;
    background: linear-gradient(-45deg, #004E7B, #003354, #F49C23, #004E7B);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
    padding: 20px;
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Glassmorphism Container */
.login-container {
    width: 100%;
    max-width: 420px;
    position: relative;
    z-index: 10;
}

.card-login {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 28px;
    padding: 40px 30px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-login:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.3);
}

/* Typography */
.brand-logo {
    display: block;
    margin: 0 auto 30px;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s ease;
}

.brand-logo:hover {
    transform: scale(1.05);
}

h2 {
    color: #fff;
    font-weight: 700;
    font-size: 1.75rem;
    margin-bottom: 8px;
    text-align: center;
}

p.subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    text-align: center;
    margin-bottom: 35px;
}

/* Form Styles */
.form-label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.85rem;
    font-weight: 600;
    margin-left: 5px;
    margin-bottom: 8px;
    display: block;
}

.input-wrapper {
    position: relative;
    margin-bottom: 25px;
}

.input-wrapper i {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.3s ease;
    font-size: 1rem;
}

.form-control {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid transparent;
    border-radius: 16px;
    padding: 14px 14px 14px 50px;
    color: #fff;
    font-size: 1rem;
    width: 100%;
    transition: all 0.3s ease;
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.form-control:focus {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(244, 156, 35, 0.1);
    outline: none;
}

.form-control:focus+i {
    color: var(--accent-color);
}

/* Button */
.btn-login {
    background: var(--accent-gradient);
    color: #fff;
    border: none;
    border-radius: 16px;
    padding: 16px;
    font-size: 1.1rem;
    font-weight: 700;
    width: 100%;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 10px 20px -5px rgba(244, 156, 35, 0.4);
}

.btn-login:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 25px -5px rgba(244, 156, 35, 0.5);
}

.btn-login:active {
    transform: scale(0.98);
}

/* Footer */
.login-footer {
    text-align: center;
    margin-top: 30px;
}

.login-footer p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
}

/* Loader */
.loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 45, 71, 0.9);
    backdrop-filter: blur(10px);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.loader-overlay.active {
    opacity: 1;
    visibility: visible;
}

.spinner-branded {
    width: 80px;
    height: 80px;
    border: 6px solid rgba(255, 255, 255, 0.1);
    border-top: 6px solid var(--accent-color);
    border-radius: 50%;
    animation: spin 1s cubic-bezier(0.5, 0.1, 0.4, 0.9) infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.loading-text {
    color: #fff;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.9rem;
}

/* Mobile Adjustments */
@media (max-width: 480px) {
    .card-login {
        padding: 30px 20px;
        border-radius: 24px;
    }

    h2 {
        font-size: 1.5rem;
    }

    .btn-login {
        padding: 14px;
    }
}