* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: #0a0a0f;
}

/* Dark Security/IT Themed Background */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    background: radial-gradient(ellipse at 20% 30%, #0a0e1a, #020408);
}

/* Dark gradient overlay */
.bg-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 40%, rgba(0, 20, 40, 0.5), rgba(0, 0, 0, 0.9));
    z-index: 1;
}

/* Animated data streams */
.data-stream {
    position: absolute;
    font-family: monospace;
    font-size: 0.7rem;
    color: rgba(0, 200, 255, 0.15);
    white-space: nowrap;
    pointer-events: none;
    z-index: 0;
    animation: fallDown linear infinite;
}

@keyframes fallDown {
    from {
        transform: translateY(-100px);
        opacity: 0;
    }

    10% {
        opacity: 0.3;
    }

    90% {
        opacity: 0.3;
    }

    to {
        transform: translateY(calc(100vh + 100px));
        opacity: 0;
    }
}

/* Moving security nodes / dots */
.security-node {
    position: absolute;
    width: 3px;
    height: 3px;
    background: rgba(0, 180, 255, 0.4);
    border-radius: 50%;
    pointer-events: none;
    animation: moveNode 15s linear infinite;
}

@keyframes moveNode {
    0% {
        transform: translateX(-10px) translateY(0);
        opacity: 0;
    }

    10% {
        opacity: 0.6;
    }

    90% {
        opacity: 0.6;
    }

    100% {
        transform: translateX(calc(100vw + 10px)) translateY(var(--move-y));
        opacity: 0;
    }
}

/* Circuit lines */
.circuit-line {
    position: absolute;
    background: linear-gradient(90deg, transparent, rgba(0, 150, 255, 0.1), transparent);
    height: 1px;
    width: 100%;
    pointer-events: none;
    animation: pulseLine 4s ease-in-out infinite;
}

@keyframes pulseLine {
    0%, 100% {
        opacity: 0.1;
    }

    50% {
        opacity: 0.3;
    }
}

/* Floating code characters */
.code-char {
    position: absolute;
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    color: rgba(0, 200, 255, 0.12);
    pointer-events: none;
    animation: floatCode 12s linear infinite;
}

@keyframes floatCode {
    from {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 0.3;
    }

    90% {
        opacity: 0.3;
    }

    to {
        transform: translateY(-100px) rotate(10deg);
        opacity: 0;
    }
}

/* Pulsing radar / security scan effect */
.security-scan {
    position: absolute;
    bottom: 5%;
    right: 3%;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(0, 100, 150, 0.03);
    animation: scanPulse 4s infinite;
    pointer-events: none;
    z-index: 0;
    border: 1px solid rgba(0, 150, 255, 0.15);
}

    .security-scan::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border-radius: 50%;
        border: 1px solid rgba(0, 200, 255, 0.2);
        animation: scanRotate 3s linear infinite;
    }

@keyframes scanPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 150, 255, 0.15);
        transform: scale(1);
    }

    70% {
        box-shadow: 0 0 0 50px rgba(0, 150, 255, 0);
        transform: scale(1.2);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(0, 150, 255, 0);
        transform: scale(1);
    }
}

@keyframes scanRotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Grid overlay for tech feel */
.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(0, 150, 255, 0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 150, 255, 0.03) 1px, transparent 1px);
    background-size: 30px 30px;
    pointer-events: none;
    z-index: 0;
}

/* Hexagon pattern overlay */
.hex-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 115" opacity="0.05"><polygon points="50,0 93,25 93,75 50,100 7,75 7,25" fill="none" stroke="rgba(0,150,255,0.3)" stroke-width="1"/><polygon points="50,15 79,30 79,60 50,75 21,60 21,30" fill="none" stroke="rgba(0,150,255,0.15)" stroke-width="0.5"/></svg>');
    background-repeat: repeat;
    background-size: 60px;
    pointer-events: none;
    z-index: 0;
}

/* Main card container */
.login-container {
    width: 100%;
    max-width: 480px;
    margin: 2rem;
    position: relative;
    z-index: 10;
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card-modern {
    background: rgba(6, 10, 18, 0.92);
    backdrop-filter: blur(15px);
    border-radius: 2rem;
    border: 1px solid rgba(0, 180, 255, 0.3);
    box-shadow: 0 30px 50px -20px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(0, 200, 255, 0.1) inset;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .card-modern:hover {
        transform: translateY(-3px);
        box-shadow: 0 35px 55px -20px rgba(0, 0, 0, 0.9);
    }

.card-header-custom {
    background: linear-gradient(135deg, rgba(0, 10, 25, 0.95), rgba(0, 5, 15, 0.98));
    padding: 1.2rem 2rem 0.8rem 2rem;
    text-align: center;
    border-bottom: 1px solid rgba(0, 180, 255, 0.2);
}

.badge-icon {
    background: linear-gradient(135deg, #0a1220, #050a15);
    width: 90px;
    height: 90px;
    border-radius: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.5rem auto;
    border: 2px solid #1a4a6e;
    box-shadow: 0 0 25px rgba(0, 150, 255, 0.3);
    animation: glowPulse 2.5s infinite;
}

@keyframes glowPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 150, 255, 0.3);
        border-color: #1a4a6e;
    }

    50% {
        box-shadow: 0 0 0 12px rgba(0, 150, 255, 0.05);
        border-color: #2c7cb6;
    }

    100% {
        box-shadow: 0 0 0 0 rgba(0, 150, 255, 0);
        border-color: #1a4a6e;
    }
}

.login-logo-img {
    max-width: 85%;
    max-height: 85%;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
}

.system-title {
    font-weight: 800;
    font-size: 1.45rem;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #ffffff, #7bc5ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 0.2rem;
}

.system-sub {
    font-size: 0.8rem;
    color: #6a8bbf;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.card-body {
    padding: 1.2rem 2rem 1.2rem 2rem;
}

/* Form group */
.form-group-modern {
    margin-bottom: 1.1rem;
}

    .form-group-modern label {
        display: block;
        font-weight: 600;
        font-size: 0.8rem;
        text-transform: uppercase;
        letter-spacing: 1px;
        color: #8aabdf;
        margin-bottom: 0.6rem;
    }

.input-icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

    .input-icon-wrapper .input-icon {
        position: absolute;
        left: 1rem;
        font-size: 1.2rem;
        pointer-events: none;
        z-index: 2;
        color: #4a8bcb;
        text-shadow: 0 0 2px rgba(0, 160, 255, 0.3);
        transition: all 0.2s ease;
    }

    .input-icon-wrapper input:focus ~ .input-icon {
        color: #7bc5ff;
        transform: scale(1.05);
        text-shadow: 0 0 5px #00a6ff;
    }

    .input-icon-wrapper input {
        width: 100%;
        padding: 0.7rem 1rem 0.7rem 2.8rem;
        background: rgba(3, 8, 18, 0.9);
        border: 1.5px solid #1a2a40;
        border-radius: 1rem;
        font-size: 0.95rem;
        color: #eef5ff;
        font-weight: 500;
        transition: all 0.25s ease;
        outline: none;
    }

        .input-icon-wrapper input:focus {
            border-color: #2c9cd4;
            box-shadow: 0 0 0 3px rgba(44, 156, 212, 0.2);
            background: rgba(5, 12, 22, 0.95);
        }

        .input-icon-wrapper input::placeholder {
            color: #4a6085;
            font-weight: 400;
            font-size: 0.9rem;
        }

.security-note {
    font-size: 0.7rem;
    color: #5a7aac;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
}

    .security-note span {
        font-size: 0.7rem;
    }

/* Modern Button */
.btn-login {
    width: 100%;
    padding: 0.75rem;
    background: linear-gradient(135deg, #0d4a5e, #073a4a);
    border: none;
    border-radius: 1.5rem;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    color: #ffffff;
    transition: all 0.3s ease;
    margin-top: 0.3rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
}

    .btn-login::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
        transition: left 0.5s;
    }

    .btn-login:hover::before {
        left: 100%;
    }

    .btn-login:hover {
        background: linear-gradient(135deg, #0f6a7a, #0a4a5a);
        transform: translateY(-2px);
        box-shadow: 0 12px 28px -8px rgba(13, 107, 94, 0.4);
    }

    .btn-login:active {
        transform: translateY(1px);
    }

.alert-custom {
    background: rgba(220, 53, 69, 0.12);
    border-left: 4px solid #f05b6e;
    border-radius: 1rem;
    padding: 0.8rem 1rem;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(8px);
    color: #ffb8c1;
    font-size: 0.85rem;
}

.footer-note {
    text-align: center;
    margin-top: 0.8rem;
    font-size: 0.7rem;
    color: #3a5a7a;
    border-top: 1px dashed rgba(0, 120, 200, 0.2);
    padding-top: 0.8rem;
}

.vehicle-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(0, 30, 50, 0.7);
    border-radius: 30px;
    padding: 0.2rem 0.8rem;
    font-size: 0.7rem;
    color: #6a9fd0;
}

@media (max-width: 500px) {
    .card-body {
        padding: 1.5rem;
    }

    .card-header-custom {
        padding: 1.5rem 1rem 1rem 1rem;
    }
}
