
@import url('https://fonts.cdnfonts.com/css/jost-3');

*{  
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'jost', sans-serif;
}

:root {
    --primary: #2933c4;
    --secondary: #9f45b0;
}

h1,
h2,
.fw-bold {
    font-weight: 700 !important;
}


body{
    background: linear-gradient(to bottom right, var(--primary), var(--secondary));
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    overflow: hidden;
}
.wrapper{
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 105vh;
}
.nav{
    position: fixed;
    top: 0;
    display: flex;
    justify-content: space-around;
    width: 100%;
    height: 120px;
    line-height: 110px;
    z-index: 100;
}
.nav-logo h1{
    color: white;
    font-size: 40px;
}
.nav-menu ul{
    display: flex;
}
.nav-menu ul li{
    list-style-type: none;
}
.nav-menu ul li .link{
    text-decoration: none;
    font-weight: 500;
    color: #fff;
    padding-bottom: 15px;
    margin: 0 25px;
}
.link:hover, .active{
    border-bottom: 2px solid #fff;
}
.nav-button .btn{
    width: 130px;
    height: 40px;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.4);
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: .3s ease;
}
.btn:hover{
    background: rgba(255, 255, 255, 0.3);
}
#registerBtn{
    margin-left: 15px;
}
.btn.white-btn{
    background: rgba(255, 255, 255, 0.7);
}
.btn.btn.white-btn:hover{
    background: rgba(255, 255, 255, 0.5);
}
.nav-menu-btn{
    display: none;
}
.form-box{
    position: relative;
    display: flex;
    align-items: center;
    width: 512px;
    height: 500px;
    overflow: hidden;
    z-index: 2;
}
.login-container{
    position: absolute;
    left: 4px;
    width: 500px;
    display: flex;
    flex-direction: column;
    transition: .5s ease-in-out;
}

.login-container .top{
    padding: 0;
}
.login-container .top span{
    margin-bottom: 0;
}
.login-container header{
    padding: 5px 0 10px 0;
}

.register-container{
    position: absolute;
    right: -520px;
    width: 500px;
    display: flex;
    flex-direction: column;
    transition: .5s ease-in-out;
}

.register-container .top span{
    padding: 0;
}
.register-container header{
    padding: 5px 0 15px 0;
}

#password-error {
    color: rgb(255, 0, 0);
    display: none;
    font-size: 12px;
    margin-bottom: 20px;
    margin-top:-20px;
    margin-left:20px;
}

.top span{
    color: #fff;
    font-size: small;
    padding: 10px 0;
    display: flex;
    justify-content: center;
}
.top span a{
    font-weight: 500;
    color: #fff;
    margin-left: 5px;
}
header{
    color: #fff;
    font-size: 30px;
    text-align: center;
    padding: 10px 0 30px 0;
    font-weight: 600;
}
.two-forms{
    display: flex;
    gap: 10px;
}
.input-field{
    font-size: 15px;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    height: 50px;
    width: 100%;
    padding: 0 40px 0 40px;
    border: none;
    border-radius: 30px;
    outline: none;
    transition: .2s ease;
}
.input-field:hover, .input-field:focus{
    background: rgba(255, 255, 255, 0.25);
}
::-webkit-input-placeholder{
    color: #fff;
}

.input-box i{
    position: relative;
    top: -35px;
    left: 17px;
    color: #fff;
}
.submit{
    font-size: 15px;
    font-weight: 500;
    color: #fff;
    height: 45px;
    width: 100%;
    border: none;
    border-radius: 30px;
    outline: none;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer; 
    position: relative;
    overflow: hidden;
    transition: .3s ease-in-out, background 0.5s ease-in-out;
    z-index: 1;
}

.submit::after {
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom right, var(--primary), var(--secondary));
    opacity: 0;
    transition: .5s ease-in-out;
    z-index: -1;
    border-radius: 30px;
}


.submit:hover{
    background: linear-gradient(to bottom right, var(--secondary), var(--primary));
    box-shadow: 1px 5px 7px 1px rgba(0, 0, 0, 0.2);
}
.two-col{
    display: flex;
    justify-content: space-between;
    color: #fff;
    font-size: small;
    margin-top: 10px;
    padding-left: 10px;
    padding-right: 10px;
}

.login-container .two-col{
    display: flex;
    justify-content: space-between;
    color: #fff;
    font-size: small;
    margin-top: -15px;
    margin-bottom: 20px;
}

.terms-label{
    font-size: 12px;
    color: #fff;
    margin-left: 0px;
}

.terms-label a{
    color: #fff;
    text-decoration: underline;
}

.bottom-text{
    text-align: center;
    margin-top: 5px;
}

.bottom-text span{
    color: #fff;
    font-size: small;
}

.bottom-text a {
    color: #fff; 
    font-weight: 500; 
    margin-left: 5px;
}

.bottom-text a:hover {
    text-decoration: underline; 
}

.terms-label a:hover{
    text-decoration: underline;
    
}

.register-container .two-col{
    margin-top: -15px;
    margin-bottom: 15px;

}

.two label a{
    text-decoration: none;
    color: #fff;
}
.two label a:hover{
    text-decoration: underline;
}
@media only screen and (max-width: 786px){
    .nav-button{
        display: none;
    }
    .nav-menu.responsive{
        top: 100px;
    }
    .nav-menu{
        position: absolute;
        top: -800px;
        display: flex;
        justify-content: center;
        background: rgba(255, 255, 255, 0.2);
        width: 100%;
        height: 90vh;
        backdrop-filter: blur(20px);
        transition: .3s;
    }
    .nav-menu ul{
        flex-direction: column;
        text-align: center;
    }
    .nav-menu-btn{
        display: block;
    }
    .nav-menu-btn i{
        font-size: 25px;
        color: #fff;
        padding: 10px;
        background: rgba(255, 255, 255, 0.2);
        border-radius: 50%;
        cursor: pointer;
        transition: .3s;
    }
    .nav-menu-btn i:hover{
        background: rgba(255, 255, 255, 0.15);
    }
}
@media only screen and (max-width: 540px) {
    .wrapper{
        min-height: 100vh;
    }
    .form-box{
        width: 100%;
        height: 500px;
    }
    .register-container, .login-container{
        width: 100%;
        padding: 0 20px;
    }
    .register-container .two-forms{
        flex-direction: column;
        gap: 0;
    }
}

 /* Terms & Conditions Overlay */
        .terms-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.8);
            backdrop-filter: blur(5px);
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 1000;
            opacity: 1;
            transition: opacity 0.3s ease;
        }

        .terms-overlay.hidden {
            opacity: 0;
            pointer-events: none;
        }

        .terms-container {
            background: white;
            border-radius: 15px;
            width: 90%;
            max-width: 600px;
            max-height: 80vh;
            display: flex;
            flex-direction: column;
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
        }

        .terms-header {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            padding: 20px;
            border-radius: 15px 15px 0 0;
            text-align: center;
        }

        .terms-header h2 {
            margin: 0;
            font-size: 1.5rem;
        }

        .terms-header p {
            margin: 5px 0 0 0;
            opacity: 0.9;
            font-size: 0.9rem;
        }

        .terms-content {
            padding: 20px;
            overflow-y: auto;
            flex: 1;
            max-height: 400px;
        }

        .terms-content h3 {
            color: #333;
            margin-bottom: 15px;
        }

        .terms-content h4 {
            color: #667eea;
            margin: 20px 0 10px 0;
        }

        .terms-content p {
            margin: 8px 0;
            line-height: 1.5;
            color: #555;
        }

        .terms-footer {
            background: #f8f9fa;
            padding: 15px;
            border-radius: 8px;
            margin-top: 20px;
            border-left: 4px solid #667eea;
        }

        .terms-actions {
            padding: 20px;
            border-top: 1px solid #eee;
            display: flex;
            flex-direction: column;
            gap: 15px;
        }

        .scroll-indicator {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            color: #666;
            font-size: 0.9rem;
            opacity: 1;
            transition: opacity 0.3s ease;
        }

        .scroll-indicator.hidden {
            opacity: 0;
        }

        .scroll-indicator i {
            animation: bounce 2s infinite;
        }

        @keyframes bounce {
            0%, 20%, 50%, 80%, 100% {
                transform: translateY(0);
            }
            40% {
                transform: translateY(-5px);
            }
            60% {
                transform: translateY(-3px);
            }
        }

        .agree-btn {
            background: #ccc;
            color: white;
            border: none;
            padding: 12px 20px;
            border-radius: 25px;
            font-size: 1rem;
            font-weight: 600;
            cursor: not-allowed;
            transition: all 0.3s ease;
        }

        .agree-btn.enabled {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            cursor: pointer;
        }

        .agree-btn.enabled:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
        }