﻿@import url('https://fonts.googleapis.com/css?family=Montserrat:400,800');

* {
    box-sizing: border-box;
}

body {
    background: #f6f5f7;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Montserrat', sans-serif;
    height: 100vh;
    margin: 0;
    overflow: hidden;
}

h1 {
    font-weight: bold;
    margin: 0;
}

span {
    display: block;
    /*margin: 15px 0;*/
    font-size: 14px;
}

a {
    font-size: 14px;
    text-decoration: none;
    margin-top: 10px;
}

.container {
    position: relative;
    width: 768px;
    max-width: 100%;
    min-height: 480px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 14px 28px rgba(0,0,0,0.25), 0 10px 10px rgba(0,0,0,0.22);
    overflow: hidden;
    opacity: 0;
    transform: translateY(80px);
    animation: slideIn 0.8s ease-out forwards;
    animation-delay: 0.3s;
}

@keyframes slideIn {
    0% {
        transform: translateY(80px) scale(0.9);
        opacity: 0;
    }
    100% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.bg-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background-size: cover;
    background-position: center;
    animation: slideBackground 9s infinite;
}

.form-container {
    position: absolute;
    top: 0;
    width: 50%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 50px;
    transition: all 0.6s ease-in-out;
    z-index: 2;
}

.sign-in-container {
    left: 0;
    z-index: 2;
}

.sign-up-container {
    left: 0;
    opacity: 0;
    z-index: 1;
}

.container.right-panel-active .sign-in-container {
    transform: translateX(100%);
}

.container.right-panel-active .sign-up-container {
    transform: translateX(100%);
    opacity: 1;
    z-index: 5;
    animation: show 0.6s;
}

@keyframes show {
    0%, 49.99% {
        opacity: 0;
        z-index: 1;
    }

    50%,100% {
        opacity: 1;
        z-index: 5;
    }
}

.overlay-container {
    position: absolute;
    top: 0;
    left: 50%;
    width: 50%;
    height: 100%;
    overflow: hidden;
    transition: transform 0.6s ease-in-out;
    z-index: 100;
}

.container.right-panel-active .overlay-container {
    transform: translateX(-100%);
}

.overlay {
    background: linear-gradient(to right,#FF4B2B,#FF416C);
    color: #fff;
    position: relative;
    left: -100%;
    width: 200%;
    height: 100%;
    transform: translateX(0);
    transition: transform 0.6s ease-in-out;
}

.container.right-panel-active .overlay {
    transform: translateX(50%);
}

.overlay-panel {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 40px;
    text-align: center;
    top: 0;
    width: 50%;
    height: 100%;
    transition: transform 0.6s ease-in-out;
}

.overlay-left {
    transform: translateX(-20%);
}

.container.right-panel-active .overlay-left {
    transform: translateX(0);
}

.overlay-right {
    right: 0;
    transform: translateX(0);
}

.container.right-panel-active .overlay-right {
    transform: translateX(20%);
}

.social-container {
    margin: 20px 0;
}

    .social-container a {
        border: 1px solid #ddd;
        border-radius: 50%;
        display: inline-flex;
        justify-content: center;
        align-items: center;
        margin: 0 5px;
        height: 40px;
        width: 40px;
    }

.input-box {
    width: 100%;
    padding: 12px 15px;
    margin: 8px 0;
    background-color: #eee;
    border: none;
}

.btn-submit {
    width: 100%;
    padding: 12px 45px;
    background-color: var(--color-code);
    border: 1px solid var(--color-code);
    color: #fff;
    font-weight: bold;
    border-radius: 20px;
    cursor: pointer;
    margin-top: 15px;
}

footer {
    background-color: transparent;
    color: #fff;
    font-size: 14px;
    bottom: 0;
    position: fixed;
    left: 0;
    right: 0;
    text-align: center;
    z-index: 999;
}

.captcha-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin: 10px 0;
    width: 100%;
}

.captcha-input {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 5px;
    width: 100%;
}

    .captcha-input .input-box {
        flex: 1;
    }

.refresh-btn {
    height: 40px;
    width: 40px;
    cursor: pointer;
}

#lblCaptcha {
    font-weight: bold;
    margin-bottom: 5px;
    text-align: center;
    background-color: beige;
    font-size: x-large;
    width: 35%;
    padding: 5px 0;
}

#lblmsg {
    margin-top: 5px;
}


.otp-inputs {
    display: flex;
    gap: 10px;
    margin: 20px 0;
    justify-content: center;
}

.otp-box {
    width: 40px;
    height: 40px;
    font-size: 10px;
    text-align: center;
    background: #fff;
    border: 2px solid #d0d0d0;
    border-radius: 100px;
    outline: none;
    transition: 0.2s ease-in-out;
}

    .otp-box:focus {
        border-color: var(--color-code);
        box-shadow: 0 0 8px rgba(79, 124, 255, 0.4);
    }


.timer-box {
    margin: 10px 0;
    font-size: 20px;
    font-weight: bold;
    color: var(--color-code);
}

#litmsg {
    letter-spacing: 1px;
}


.otp-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

.btn-resend {
    background-color: #ddd;
    border: none;
    padding: 10px 18px;
    border-radius: 6px;
    cursor: pointer;
}

    .btn-resend:hover {
        background-color: #ccc;
    }


.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    width: 35px;
    height: 35px;
    font-size: 24px;
    font-weight: bold;
    border: none;
    background: transparent;
    cursor: pointer;
    color: #666;
    padding: 0;
    z-index: 9999;
    line-height: 35px;
}

    .close-btn:hover {
        color: #000;
    }


@import url('https://fonts.googleapis.com/css?family=Montserrat:400,800');

* {
    box-sizing: border-box;
}

body {
    background: #f6f5f7;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Montserrat', sans-serif;
    height: 100vh;
    margin: 0;
    overflow: hidden;
}

h1 {
    font-weight: bold;
    margin: 0;
}

span {
    display: block;
    /*margin: 15px 0;*/
    font-size: 14px;
}

.container {
    position: relative;
    width: 768px;
    max-width: 100%;
    min-height: 480px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 14px 28px rgba(0,0,0,0.25), 0 10px 10px rgba(0,0,0,0.22);
    overflow: hidden;
    opacity: 0;
    transform: translateY(80px);
    animation: slideIn 0.8s ease-out forwards;
    animation-delay: 0.3s;
}

@keyframes slideIn {
    0% {
        transform: translateY(80px) scale(0.9);
        opacity: 0;
    }

    100% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

/* ------------------------------
   🔥 ANIMATED BACKGROUND
--------------------------------*/
.bg-anim {
    animation: slide 3s ease-in-out infinite alternate;
    /*background-image: linear-gradient(-60deg, #FF4B2B 50%, #FF416C 50%);*/
    background-image: linear-gradient(-60deg, #b5b5b5 50%, var(--color-code) 50%);
    bottom: 0;
    left: -50%;
    opacity: .55;
    position: absolute;
    right: -50%;
    top: 0;
    z-index: -1;
}

    .bg-anim.bg2 {
        animation-direction: alternate-reverse;
        animation-duration: 4s;
    }

    .bg-anim.bg3 {
        animation-duration: 5s;
    }

@keyframes slide {
    0% {
        transform: translateX(-25%);
    }

    100% {
        transform: translateX(25%);
    }
}

/* ----------------------------------
    Background Video
----------------------------------- */
.bg-slider video {
    position: fixed;
    right: 0;
    bottom: 0;
    min-width: 100%;
    min-height: 100%;
    z-index: -10;
}

/* ------------------------------
    Form Panel Styling
------------------------------ */
.form-container {
    position: absolute;
    top: 0;
    width: 50%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 50px;
    transition: all 0.6s ease-in-out;
    z-index: 2;
}

.sign-in-container {
    left: 0;
    z-index: 2;
}

.sign-up-container {
    left: 0;
    opacity: 0;
    z-index: 1;
}

.container.right-panel-active .sign-in-container {
    transform: translateX(100%);
}

.container.right-panel-active .sign-up-container {
    transform: translateX(100%);
    opacity: 1;
    z-index: 5;
    animation: show 0.6s;
}

@keyframes show {
    0%,49.99% {
        opacity: 0;
        z-index: 1;
    }

    50%,100% {
        opacity: 1;
        z-index: 5;
    }
}

/* ------------------------------
   OVERLAY + Animated Background
------------------------------ */
.overlay-container {
    position: absolute;
    top: 0;
    left: 50%;
    width: 50%;
    height: 100%;
    overflow: hidden;
    transition: transform 0.6s ease-in-out;
    z-index: 100;
}

.container.right-panel-active .overlay-container {
    transform: translateX(-100%);
}

/* REMOVE RED COLOR — REPLACED BY ANIMATION */
.overlay {
    background: transparent !important;
    position: relative;
    left: -100%;
    width: 200%;
    height: 100%;
    transition: transform 0.6s ease-in-out;
    z-index: 2;
}

.container.right-panel-active .overlay {
    transform: translateX(50%);
}

.overlay-panel {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 40px;
    top: 0;
    width: 50%;
    height: 100%;
    text-align: center;
    color: white;
}

.overlay-left {
    transform: translateX(-20%);
}

.container.right-panel-active .overlay-left {
    transform: translateX(0);
}

.overlay-right {
    right: 0;
}

.container.right-panel-active .overlay-right {
    transform: translateX(20%);
}

/* Buttons */
.btn-submit {
    width: 100%;
    padding: 12px 45px;
    background-color: var(--color-code);
    border: 1px solid var(--color-code);
    color: #fff;
    font-weight: bold;
    border-radius: 20px;
    cursor: pointer;
}

/* OTP + Captcha Styling (unchanged) */
.otp-inputs {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.otp-box {
    width: 40px;
    height: 40px;
    font-size: 16px;
    text-align: center;
    border: 2px solid #d0d0d0;
    border-radius: 100px;
}

footer {
    background: transparent;
    color: #fff;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
    z-index: 999;
}
