﻿/*  Fullscreen Background Video */
#bgVideo {
    position: fixed;
    top: 50%;
    left: 50%;
    min-width: 100vw;
    min-height: 100vh;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: -2;
    filter: brightness(70%) contrast(105%) saturate(120%);
}

/* Overlay */
.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

/* Login Box with Glassmorphism */
.login-box {
    position: fixed;
    top: 35%;
    left: 100px;
    transform: translateY(-50%);
    width: 100%;
    max-width: 400px;
    padding: 30px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.7);
    animation: slideInFromRight 1.2s ease forwards;
    z-index: 10;
    overflow: hidden;
}

    .login-box::before {
        content: '';
        position: absolute;
        inset: 0;
        border-radius: inherit;
        background: linear-gradient(135deg, rgba(255,255,255,0.15), rgba(255,255,255,0.02));
        pointer-events: none;
        z-index: -1;
    }

/* Smooth Slide from Right */
@keyframes slideInFromRight {
    0% {
        transform: translate(100%, -50%);
        opacity: 0;
    }

    100% {
        transform: translate(0, -50%);
        opacity: 1;
    }
}

/*  Logo */
.login-box > .screen > .login__field img {
    width: 240px;
    display: block;
    margin: 0 auto 20px;
    filter: brightness(88.5) contrast(124.9) drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
    transition: transform 0.3s ease, filter 0.3s ease;
}

    .login-box > .screen > .login__field img:hover {
        transform: scale(1.05);
        filter: brightness(100%) contrast(130%) drop-shadow(0 0 12px rgba(0, 255, 255, 0.5));
    }


    /* ---------- Bottom Logo ---------- */
.screen__content > img:last-child {
    max-width: 200px;
    margin: 40px auto 0;
    display: block;
    opacity: 0.85;
}

/* Input Field */
.login__field {
    margin-bottom: 18px;
    position: relative;
    color: #fff;
}

.login__icon {
    position: absolute;
    top: 12px;
    left: 10px;
    color: #fff;
}

.login__input {
    width: 100%;
    padding: 12px 10px 12px 36px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    border: none;
    color: #fff;
    font-size: 15px;
    outline: none;
    transition: 0.3s ease;
}

    .login__input:focus {
        background: rgba(255, 255, 255, 0.2);
        box-shadow: 0 0 12px #00c3ff;
    }

    .login__input::placeholder {
        color: #eee;
        opacity: 0.8;
    }

/* Password Icon */
.field-icon {
    position: absolute;
    top: 12px;
    right: 15px;
    color: #fff;
    cursor: pointer;
}

/* Glowing Submit Button */
.button.login__submit {
    width: 100%;
    padding: 12px;
    border: none;
    background: linear-gradient(270deg, #3F51B5, #2196F3, #00BCD4, #3F51B5);
    background-size: 400% 100%;
    color: #fff;
    font-weight: 600;
    font-size: 16px;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 0 12px rgba(0, 188, 212, 0.6), 0 0 24px rgba(33, 150, 243, 0.3);
    transition: background-position 0.5s ease, box-shadow 0.4s ease, transform 0.3s ease;
}

    .button.login__submit:hover {
        background-position: right center;
        box-shadow: 0 0 18px rgba(0, 188, 212, 0.8), 0 0 36px rgba(33, 150, 243, 0.5);
        animation: gradientShift 2s linear infinite;
        transform: scale(1.03);
    }

/* Gradient Shift Animation */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 100% 50%;
    }
}

/* Forgot Password Link */
#btnForgotten {
    color: #f1c40f;
    text-decoration: none;
    display: block;
    margin-top: 12px;
    font-size: 13px;
    text-align: right;
}

    #btnForgotten:hover {
        color: #ffffff;
        text-shadow: 0 0 8px #f1c40f;
        font-weight: bold;
    }

.pwd {
    -webkit-text-security: disc;
}

/* Responsive */
@media (max-width: 768px) {
    .login-box {
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        animation: fadeInMobile 1.2s ease forwards;
        max-width: 90%;
    }
}

@keyframes fadeInMobile {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.85);
    }

    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}
