*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body{
    background-color: #326964;
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    flex-direction: column;
    padding-top: 80px;
}

main {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

@font-face {
    font-family: 'Greek-Freak';
    src: url('/fonts/Greek-Freak.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

#contact {
    padding: 60px 0;
    margin: 60px 0 0;
}

/* Login Container */
section.flex.items-center.justify-center.py-24 > .container {
    width: 520px;
    height: 570px;
    margin: 0 auto;
    background: transparent;
    border-radius: 30px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    z-index: 10;
}

#contact {
    background: white;
    position: static ;
    transform: none ;
    border-radius: 0 ;
    box-shadow: none ;
    /* backdrop-filter: none ; */
    margin-top: 60px 0 0 ;
    padding: 40px 0 ;
    width: 100vw ;
    position: relative;
    left: 0;
    right: 0;
    width: 100%;
    margin: 60px 0 0 ;
}

#contact .container1 {
    background: transparent ;
    box-shadow: none ;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto ;
    padding: 0 1rem;
    border-radius: 0;
}

footer {
    width: 100%;
   
    padding: 40px 0;
}

.form-box{
    position: absolute;
    right: 0;
    width: 50%;
    height: 100%;
    background: transparent;
    display: flex;
    align-items: center;
    color: #333;
    text-align: center;
    padding: 50px;
    z-index: 2;
    transition: 0.6s ease-in-out 1.2s, visibility 0s 1s;
}
.container.active .form-box{
    right: 50%;
}
.form-box.register {
    display: none;
}
.container.active .form-box.register {
    display: flex;
}
.form-box.login {
    display: flex;
}
.container.active .form-box.login {
    display: none;
}

form{
    width: 100%;
}
.container h1{
    font-size: 40px;
    margin: -10px 0;
}
.input-box{
    position: relative;
    margin: 30px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}
.input-box input{
    width: 100%;
    padding: 13px 50px 13px 20px;
    background: rgb(243, 235, 235);
    border-radius: 8px;
    border: none;
    outline: none;
    font-size: 16px;
    color: #302e2e;
    font-weight: 500;
}
.input-box input::placeholder{
    color: #bbb9b9;
    font-weight: 400;
}
.input-box i {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    color: #888;
}

.forget-link{
    margin: -15px 0 15px;
}
.forget-link a{
    font-size: 14.5px;
    color: #f8f6f6;
    text-decoration: none;
}
.btn{
    width: 100%;
    height: 48px;
    background:  #eab308;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: aliceblue;
    font-weight: 600;
}
.container p{
    font-size: 15px;
    margin: 15px 0;
    color: #fff;
}
.social-icons{
    display: flex;
    justify-content: center;
    color: white;
}
.social-icons a{
    display: inline-flex;
    padding: 10px;
    border: 2px solid #ccc;
    border-radius: 8px;
    text-decoration: none;
    margin: 0 8px;
}
.social-icons a :hover{
    color: #eab308;
}
.toggle-box{
    position: absolute;
    width: 100%;
    height: 100%;
    background: transparent;
}
.toggle-box::before{
    content: '';
    position: absolute;
    left: -250%;
    width: 300%;
    height: 100%;
    background: #f6f6f7;
    border-radius: 150px;
    z-index: 2;
    transition: 1.8s ease-in-out;
}
.container.active .toggle-box::before {
    left: 50%;
}

.toggle-panel {
    position: absolute;
    width: 50%;
    height: 100%;
    color: #fff;
    background: transparent;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 2;
    transition: 0.6s ease-in-out;
}
.toggle-panel.toggle-left{
    left: 0;
    transition-delay: 0.6s;
}
.container.active .toggle-panel.toggle-left{
    left: -50%;
    transition-delay: 0.6s;
}
.toggle-panel.toggle-right{
    right: -50%;
    transition-delay: 0.6s;
}
.container.active .toggle-panel.toggle-right{
    right: 0;
    transition-delay: 1.2s;
}
.toggle-panel  p{
    margin-bottom: 20px;
}

.register-btn{
    width: 160px;
    height: 46px;
    background:  #eab308;
    border: 2px solid #fff;
    box-shadow: none;
    color: #fff;
    border-radius: 8px;
    cursor: pointer;
}
.login-btn{
    width: 160px;
    height: 46px;
    background:  #eab308;
    border: 2px solid #fff;
    box-shadow: none;
    color: #fff;
    cursor: pointer;
    border-radius: 8px;
}

@media  screen and (max-width: 650px){
    .container{
      height: calc(100vh - 40px);
    }
    .form-box{
        bottom: 0;
        width: 100%;
        height: 70%;
    }
    .container.active .form-box{
       right: 0;
       bottom: 30%;
    }
    .toggle-box::before{
        width: 100%;
        height: 300%;
        left: 0;
        border-radius: 20vw;
        top: -270%;
    }
    .container.active.toggle-box::before{
        top: 70%;
        left: 0;
    }
    .toggle-panel{
       width: 100%;
       height: 30%;
    }
    .toggle-panel.toggle-left{
        top: 0;
    }
    .container.active .toggle-panel.toggle-left{
        left: 0;
        top: -30%;
    }
    .toggle-panel.toggle-right{
        right: 0;
        bottom: -30%;
    }
    .container.active .toggle-panel.toggle-right{
        bottom: 0;
    }
}
@media  screen and (max-width: 400px){
    .form-box{
        padding: 20px;
    }
    .toggle-panel h1{
        font-size: 30px;
    }
    
    
}

/* Additional Media Queries */
/* @media {
    section.flex.items-center.justify-center.py-24 > .container {
        width: 90% !important;
        max-width: 450px !important;
        height: auto !important;
        min-height: 570px !important;
    }
    
    .form-box {
        padding: 30px !important;
    }
} */

@media (max-width: 768px) {
    body {
        padding-top: 60px !important;
    }
    
    section.flex.items-center.justify-center.py-24 > .container {
        border-radius: 20px !important;
        box-shadow: 0 0 15px rgba(0,0,0,0.1) !important;
    }
    
    #contact .container {
        padding: 0 15px !important;
    }
    
    footer .grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 30px !important;
    }
}

/* @media (max-width: 480px) {
    section.flex.items-center.justify-center.py-24 >
        width: 95% !important;

    } */

    /* .form-box {
        padding: 20px !important;
    }
    
    footer .grid {
        grid-template-columns: 1fr !important;
    }
    
    .toggle-panel h1 {
        font-size: 28px !important;
    } */

@media (max-width: 480px) {
    footer .grid {
        grid-template-columns: 1fr !important;
    }
    
}
/* Toggle Button Styles */
/* Make register form responsive like login form */
@media screen and (max-width: 650px){
  
    .container.active .form-box.register {
        bottom: 25.9%;
        width: 100%;
        height: 70.9%;
        right: 0;
     
    }
   .toggle-panel.register{
       width: 100%;
       height: 20.5%;
    }
    .container.active .toggle-box::before {
        top: 80%;
        left: 0;
        margin-top:0 ;
    }
    
    .container.active .toggle-panel.toggle-left {
        left: 0;
        top: -30%;
    }
    
    .container.active .toggle-panel.toggle-right {
        bottom: 0;
       
      
    }
   
  /* Remove all spacing */
    .toggle-panel.toggle-right h1,
    .toggle-panel.toggle-right p,
    .toggle-panel.toggle-right .login-btn {
        margin: 0;
        padding: 0;
    }

    /* Specific element adjustments */
    .toggle-panel.toggle-right .login-btn {
        padding: 6px 12px;
        /* margin-top: auto;  */
        /* Tiny space below button */
        
   
    }

    

    .toggle-panel.toggle-right h1 {
      
   
    padding:0px;
    margin-top: auto !important; /* Tiny space below button */
    }
}

@media screen and (max-width: 400px){
    .container.active .form-box.register {
        padding: 10px;
    
    }
    .toggle-panel.toggle-right h1{
        font-size: 30px;
    }
    
    
}
