* {
    font-family: "Poppins";
}

html {
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    scrollbar-width: none; /* Firefox */
}

html::-webkit-scrollbar {
    display: none; /* Chrome, Safari */
}

body {
    position: relative;
}

#particles-bg {
    display: flex;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    contain: layout paint; /* force isolation */
    backface-visibility: hidden;
    transform: translateZ(0); /* force GPU promotion */
}

#particles-bg {
    mask-image: linear-gradient(
        to top,
        rgb(0, 0, 0) 30%,
        rgba(0, 0, 0, 0) 100%
    );
    -webkit-mask-image: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.555) 30%,
        rgba(0, 0, 0, 0) 100%
    );
}

.background-container {
    display: flex;
    position: relative;
    background: radial-gradient(circle, #d9d9d9 0%, #c4c4c4 100%);
    width: 100vw;
    height: 100vh;
}

.super-container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    background-color: #065d0000;
    width: 40%;
    height: 100%;
}

.super-container img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.foreground-container {
    position: absolute;
    width: 40%;
    height: 100%;
    margin-top: 1%;
    display: flex;
    justify-content: center;
    top: 0;
    right: 1.5%;
    z-index: 999;
    /* background: red; */
}

.mobile-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 0, 0, 0);
}

.form-title {
    font-weight: bold;
    color: white;
}

.form-subtitle {
    color: rgba(255, 255, 255, 0.582);
}

.login-form-container {
    width: 95%;
    height: 95%;
    backdrop-filter: blur(3px);
    background: rgba(0, 0, 0, 0.6);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10%;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.caps-lock-warning {
    font-weight: 700;
    margin-left: -30vw !important;
}

button {
    all: unset;
}

button:focus {
    outline: revert;
}

.login-label {
    display: flex;
    width: 100%;
    color: white;
    font-weight: 700;
    font-size: 1rem;
}

.login-container {
    width: 99%;
    height: 80%;
    display: flex;
    flex-direction: column;
    background-color: none;
    justify-content: center;
    align-items: center;
}

.login-button {
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-weight: bold;
    width: 400px;
    height: 46px;
    flex-shrink: 0;
    border-radius: 50px;
    background: #61a2d0;
    box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25);
    transition: background-position 0.3s ease;
    overflow: hidden;
    position: relative;
    text-align: center;
    z-index: 1;
}

.login-button span {
    position: relative;
    z-index: 3; /* above shine */
}

.login-button::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.6) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-20deg);
    z-index: 2;
    transition: none;
}

.login-button:hover::before {
    animation: hoverShine 0.8s ease-in-out;
}

.login-button:hover {
    box-shadow:
        0 0 12px rgba(97, 162, 208, 0.6),
        0 0 24px rgba(97, 162, 208, 0.4);
    transform: scale(1.02);
}

.login-button::after {
    content: "";
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        120deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.4) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-20deg);
    z-index: 2;
    animation: shine 3s infinite;
}

@keyframes shine {
    0% {
        left: -75%;
    }
    100% {
        left: 125%;
    }
}

@keyframes hoverShine {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

.forget-password {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.452);
}

.forget-password a {
    text-decoration: none;
    color: #61a2d0;
    font-weight: 700;
}

.forget-password a:hover {
    color: #010233;
}

.form-control {
    border: none !important;
    border-radius: 0px !important;
    border-bottom: solid 1px rgb(255, 255, 255) !important;
    background: rgba(0, 0, 0, 0.349) !important;
    color: white !important;
}

.form-control.icon {
    border-radius: 8px 0px 0px 8px !important;
}

.form-control.input {
    border-radius: 0px 8px 8px 0px !important;
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.541) !important;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
    /* This is the magic line for font color */
    -webkit-text-fill-color: white !important;

    /* Your existing background hack */
    transition: background-color 5000s ease-in-out 0s;

    /* If you want to use a background color other than the default */
    /* -webkit-box-shadow: 0 0 0px 1000px #2a2a2a inset; */
}

.btn-outline-secondary {
    border: none !important;
    border-radius: 0px !important;
    color: white !important;
    border-radius: 0px 8px 8px 0px !important;
    background: rgba(0, 0, 0, 0.349) !important;
}

.btn-outline-secondary:hover {
    background-color: rgb(255, 255, 255) !important;
}

.form-control:focus {
    box-shadow: none !important;
}

.form-title {
    font-weight: bold;
    color: white;
    font-size: 1rem;
}

.big-screen-title {
    font-family: "Poppins";
    position: absolute;
    left: 0;
    top: 0;
    padding: 5%;
    width: 40%;
    color: white;
    font-size: 4rem;
    font-weight: 700 !important;
}

.login-container {
    width: 100%;
    height: 50%;
    display: flex;
    flex-direction: column;
    background-color: #065d0000;
    justify-content: center;
    align-items: center;
}

.device-wrapper {
    position: relative;
    width: 100%;
    max-width: 1200px; /* Responsive max size */
    margin-left: -20%; /* 👈 Nudge left by 20px */
    perspective: 1000px; /* help Safari handle 3D transforms */
}

.device-wrapper img {
    width: 100%;
    height: auto;
    display: block;
}

.device-clock {
    position: absolute;
    text-align: center;
    color: white;
    pointer-events: none;
    z-index: 2;
    transform-style: preserve-3d;
    will-change: transform;
    backface-visibility: hidden;
}

/* Clock-specific positioning — TUNE THESE */
#device-clock-1 {
    top: 25.3%;
    left: 33.2%;
    width: 45.2%;
    transform: translateZ(0) rotateX(-1deg) rotateY(-20deg) rotateZ(5deg)
        skewX(-8deg) skewY(-2deg);
    transform-style: preserve-3d;
    will-change: transform;
    backface-visibility: hidden;
}

#device-clock-2 {
    top: 52.9%;
    left: 10.1%;
    width: 45%;
    transform: translateZ(0) rotateX(7deg) rotateY(-23deg) rotateZ(0deg)
        skewX(10deg) skewY(-1deg);
    transform-style: preserve-3d;
    will-change: transform;
    backface-visibility: hidden;
}

/* These will be dynamically updated */
.device-clock .time {
    font-size: 3vw;
    font-weight: bold;
}
.device-clock .date {
    margin-top: -2vh;
    font-size: 0.8vw;
}

.device-clock .time-2 {
    font-size: 2.3vw;
    font-weight: bold;
}
.device-clock .date-2 {
    margin-top: -1vh;
    font-size: 0.6vw;
}

@media (max-width: 801px) {
    .foreground-container {
        position: absolute;
        width: 100%;
        height: 60%;
        top: 40%;
        bottom: 0px;
        right: 0%;
        -webkit-backdrop-filter: blur(15px); /* Add this just in case */
        backdrop-filter: blur(15px);
    }

    .login-form-container {
        width: 95%;
        height: 95%;
        backdrop-filter: blur(120px);
        background: rgba(0, 0, 0, 0.6);
        border-radius: 16px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        padding: 4%;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    }

    .background-container {
        display: flex;
        position: relative;
        justify-content: center;
        background: radial-gradient(circle, #d9d9d9 0%, #c4c4c4 100%);
        width: 100vw;
        height: 100vh;
    }

    .super-container {
        display: flex;
        justify-content: center;
        align-items: center;
        position: relative;
        background-color: #065d0000;
        width: 90%;
        height: 70%;
        z-index: 1;
    }

    .device-wrapper {
        position: relative;
        width: 100%;
        max-width: 600px; /* Responsive max size */
        margin-left: 0%; /* 👈 Nudge left by 20px */
        overflow: visible;
    }

    .device-clock .time {
        font-size: 6vw;
        font-weight: bold;
    }
    .device-clock .date {
        margin-top: -1.5vh;
        font-size: 1.2vw;
    }

    .super-container img {
        object-fit: contain;
        width: 100%;
        height: 100%;
    }

    .login-button {
        width: 90%;
        height: 40%;
        margin-top: -10%;
    }
}
