src/main/resources/static/css/style.css
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap");

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

:root {
    --bg-color: linear-gradient(90deg, #e2e2e2, #c9d6ff);
    --dark-bg-color: linear-gradient(90deg, #181717, #202020);
    --btn-color: linear-gradient(180deg, #4da1ff 0%, #6fcbff 50%, #aeebff 100%);
    --dark-btn-color: linear-gradient(to bottom, #0f0c29, #302b63);
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: var(--bg-color);
}

body.dark-mode {
    background: var(--dark-bg-color);
}

.container {
    position: relative;
    width: 850px;
    height: 550px;
    background-color: #fff;
    border-radius: 30px;
    box-shadow: 0 0 40px rgba(16, 139, 211, 0.5);
    margin: 10px 20px;
    overflow: hidden;
}

.mobile-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, #2980b9, #6dd5fa, #e3f8ff);
    z-index: 10; /* Ensure it appears above the container content */
    display: none; /* Hide by default */
}

.dark-mode .mobile-overlay {
    background: linear-gradient(to bottom, #0f0c29, #302b63, #24243e);
}

.dark-mode .container {
    border: #24243e solid 1px;
    box-shadow: 0 0 100px rgba(64, 0, 117, 0.834);
}
.form-box {
    position: absolute;
    right: 0;
    width: 50%;
    height: 100%;
    background: #fff;
    display: flex;
    align-items: center;
    color: #333;
    text-align: center;
    padding: 40px;
    z-index: 1;
    opacity: 1;
    transition: 0.6s ease-in-out;
}

.container.active .form-box {
    right: 50%;
}

.form-box.register {
    opacity: 0;
    z-index: 0;
    pointer-events: none;
}

.container.active .form-box.register {
    opacity: 1;
    z-index: 1;
    pointer-events: auto;
}

form {
    width: 100%;
}

.container h1 {
    font-size: 36px;
    margin: -10px 0;
}

.input-box {
    position: relative;
    margin: 30px 0;
}

.input-box input {
    width: 100%;
    padding: 13px 50px 13px 20px;
    background: #eee;
    border-radius: 8px;
    border: none;
    color: #333;
    outline: none;
    font-size: 16px;
    color: #333;
    font-weight: 500;
}

.input-box input::placeholder {
    color: #888;
    font-weight: 400;
}

.input-box i {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    color: #888;
}

.forgot-link {
    margin: -15px 0 15px;
}

.forgot-link a {
    font-size: 14.5px;
    color: #333;
    text-decoration: none;
}

.btn {
    width: 100%;
    height: 40px;
    background: var(--btn-color);
    border-radius: 8px;
    box-shadow: 1px 1px 8px rgba(7, 172, 255, 0.726);
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: #fff;
    font-weight: 600;
    transition: 1s ease;
}

.dark-mode .btn {
    background: var(--dark-btn-color);
    box-shadow: 0px 1px 10px rgba(64, 0, 117, 0.8);
}

.btn:hover {
    background: #4da1ff;
}

.dark-mode .btn:hover {
    background: #0f0c29;
}

.container p {
    font-size: 14.5px;
    margin: 15px 0;
}

.social-icons {
    display: flex;
    justify-content: center;
}

.social-icons a {
    display: inline-flex;
    padding: 10px;
    border: 2px solid #ccc;
    border-radius: 8px;
    font-size: 24px;
    color: #333;
    text-decoration: none;
    margin: 0 8px;
}

.toggle-box {
    position: absolute;
    width: 100%;
    height: 100%;
}

.toggle-box::before {
    content: "";
    position: absolute;
    left: -250%;
    width: 300%;
    height: 100%;
    background: linear-gradient(0deg, #4da1ff 0%, #6fcbff 50%, #aeebff 100%);
    border-radius: 60px;
    box-shadow: 1px 2px 10px rgba(7, 172, 255, 0.86);
    z-index: 1; /* Lower the z-index to ensure it doesn't overlap interactive elements */
    pointer-events: none; /* Prevent the pseudo-element from interfering with clicks */
    transition: 0.7s ease-in-out;
}

.dark-mode .toggle-box::before {
    background: linear-gradient(to top, #0f0c29, #302b63, #24243e);
    box-shadow: 1px 3px 15px rgba(64, 0, 117, 0.8);
}

.container.active .toggle-box::before {
    left: 50%;
}

.toggle-panel {
    position: absolute;
    width: 50%;
    height: 100%;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 2; /* Ensure this is above the pseudo-element */
    transition: 0.6s ease-in-out;
}

.toggle-panel.toggle-left {
    left: 0;
}

.container.active .toggle-panel.toggle-left {
    left: -50%;
}

.toggle-panel.toggle-right {
    right: -50%;
}

.container.active .toggle-panel.toggle-right {
    right: 0;
}

.toggle-panel p {
    margin-bottom: 20px;
}

.toggle-panel .btn {
    width: 160px;
    height: 46px;
    background: transparent;
    border: 2px solid #fff;
    box-shadow: none;
    transition: 0.6s ease;
}
.toggle-panel .btn:hover {
    background: white;
    /* color: linear-gradient(0deg, #aeebff 30%, #6fcbff 60%, #4da1ff 100%); */
    color: #4da1ff;
}

.dark-mode .toggle-panel .btn:hover {
    color: #0f0c29;
}

.bulb {
    position: absolute;
    z-index: 9;
    right: 10px;
    top: 10px;
    padding: 10px;
    background: linear-gradient(0deg, #6fcbff 50%, #4da1ff 100%);
    border-radius: 40%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.dark-mode .bulb {
    background: linear-gradient(to bottom, #0f0c29, #24243e);
    color: white;
}

.bulb i {
    color: white;
    font-size: 3vh;
    transform: rotate(-135deg);
}

@media screen and (max-width: 650px) {
    .container {
        height: calc(100vh - 100px);
        top: -15px;
    }

    .mobile-overlay {
        display: block;
    }

    .mobile-overlay.fade-out {
        opacity: 0;
        transition: opacity 1s ease-in-out;
        pointer-events: none;
    }

    .svg-launch {
        width: 100%;
        max-width: 240px;
        margin: 0 auto; /* Center horizontally */
        position: absolute; /* Allow positioning */
        top: 50%; /* Center vertically */
        left: 57%; /* Center horizontally */
        transform: translate(-50%, -50%); /* Adjust for the element's size */
    }

    .svg-launch svg {
        width: 80%;
        height: auto;
        display: block;
        filter: drop-shadow(0 0 20px #ffffff) drop-shadow(0 0 20px #33ccff);
        transition: filter 0.4s ease-in-out;
    }

    .dark-mode .svg-launch svg {
        filter: drop-shadow(0 0 3px #ffd700) drop-shadow(0 0 3px #ffa500);
        transition: filter 0.5s ease-in-out; /* smoother fade out */
    }

    .svg-launch path {
        stroke: #ffffff;
        stroke-width: 6;
        fill: none;
        stroke-dasharray: 1000;
        stroke-dashoffset: 1000;
        animation: draw 5s ease-in-out infinite;
    }

    .dark-mode .svg-launch path {
        stroke: #ffd700;
    }

    .form-box {
        bottom: 0;
        width: 100%;
        height: 70%;
    }

    .login {
        padding-bottom: 100px;
    }

    .register {
        padding-top: 60px;
    }

    .container.active .form-box {
        right: 0;
        bottom: 30%;
    }

    .toggle-box::before {
        background: linear-gradient(
            90deg,
            #4da1ff 30%,
            #6fcbff 60%,
            #aeebff 100%
        );
        left: 0;
        top: -270%;
        width: 100%;
        height: 300%;
        border-radius: 20vw;
    }

    .container.active .toggle-box::before {
        left: 0;
        top: 70%;
    }

    .toggle-panel {
        width: 100%;
        height: 30%;
        /* display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center; */
    }

    .toggle-panel h1 {
        font-size: 3vh;
    }

    .toggle-panel.toggle-left {
        top: 0;
        bottom: 200;
    }

    .container.active .toggle-panel.toggle-left {
        left: 0;
        top: -30%;
    }

    .toggle-panel.toggle-right {
        z-index: 2;
        right: -100%;
        bottom: 0;
        transition: 0.7s ease-in-out;
    }

    .container.active .toggle-panel.toggle-right {
        bottom: 0;
        z-index: 2;
        transition: 0.8s ease-in-out;
    }

    .bulb {
        padding: 5px;
    }

    .svg-container {
        display: none;
    }
}

@media screen and (max-width: 370px) {
    .svg-container {
        display: none;
    }

    .container {
        height: calc(100vh - 20px);
        top: 0px;
    }

    .form-box h1 {
        font-size: 3.5vh;
    }
}

/*SVG PART*/
.svg-container {
    width: 100%;
    max-width: 220px;
    margin-top: -12%;
    /* margin: 0 auto 1rem; */
}

.svg-container svg {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 0 20px #ffffff) drop-shadow(0 0 20px #33ccff);
    transition: filter 0.4s ease-in-out;
}

.svg-container svg:hover {
    animation: flickerHoverGlow 2.5s ease-in-out;
    cursor: pointer;
}

@keyframes flickerHoverGlow {
    0% {
        filter: drop-shadow(0 0 20px #ffffff) drop-shadow(0 0 20px #33ccff);
    }
    50% {
        filter: drop-shadow(0 0 60px #ffffff) drop-shadow(0 0 60px #33ccff);
    }
    100% {
        filter: drop-shadow(0 0 100px #ffffff) drop-shadow(0 0 100px #33ccff);
    }
}

/* Initial subtle glow */
.dark-mode .svg-container svg {
    filter: drop-shadow(0 0 3px #ffd700) drop-shadow(0 0 3px #ffa500);
    transition: filter 0.5s ease-in-out; /* smoother fade out */
}

/* Add a class that triggers the animation only on hover */
.dark-mode .svg-container svg:hover {
    animation: pulseHoverGlowDark 2s infinite ease-in-out;
    cursor: pointer;
}

/* Smooth pulse glow */
@keyframes pulseHoverGlowDark {
    0% {
        filter: drop-shadow(0 0 3px #ffd700) drop-shadow(0 0 3px #ffa500);
    }
    50% {
        filter: drop-shadow(0 0 10px #ffd700) drop-shadow(0 0 15px #ffa500);
    }
    100% {
        filter: drop-shadow(0 0 3px #ffd700) drop-shadow(0 0 3px #ffa500);
    }
}

.svg-container path {
    stroke: #ffffff;
    stroke-width: 6;
    fill: none;
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: draw 7s ease-in-out infinite;
}

.dark-mode .svg-container path {
    stroke: #ffd700;
}

@keyframes draw {
    0% {
        stroke-dashoffset: 1000;
    }
    50% {
        stroke-dashoffset: 0;
    }
    100% {
        stroke-dashoffset: 1000;
    }
}
