

body{ 
    display: flex;
     margin: 0;
    padding: 0;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: url('sky2.gif') ;
    background-size: cover;
    background-position: center;
}
.main{
    justify-content: center;
    align-items: center;
  width: 350px;
  height: 500px;
   backdrop-filter: blur(20px);
   overflow: hidden;
 box-shadow: 0 0 10px rgba(255, 255, 255, .2);
 border-radius: 10px;
 background: transparent;
   border: 2px solid rgba(255, 255, 255, .2);
}

#chk{
    display: none;
}

.signup{
position: relative;
width: 100%;
height: 100%;
}

label{
    color: #fff;
    font-size: 2.3em;
    justify-content: center;
    display: flex;
    margin: 60px;
    font-weight: bold;
    cursor: pointer;
    transition: .7s ease-in-out ;
}

input{
   color: white; 
    width: 60%;
    height: 20px;
    background: transparent;
    justify-content: center;
    display: flex;
    margin: 20px auto;
    padding: 10px;
    border: 2px solid rgba(255, 255, 255, .2);
    border-radius: 40px;
    outline: none;
}

.signup input::placeholder, .login input::placeholder{
    color: #cccccc
}

button{
    width: 60%;
    height: 40px;
    margin: 10px auto;
    justify-content: center;
    display: block;
    color: #fff;
    background: #1c2b72;
    font-size: 1em;
    font-weight: bold;
    margin-top: 20px;
    outline: none;
   border: none;
   transition: .2s ease-in;
   cursor: pointer;
   border-radius: 40px;
   box-shadow:  0 0 10px rgba(255, 255, 255, .1);
}

button:hover{
    background: #040036;
}

.login{
    
     box-shadow: 0 0 10px rgba(255, 255, 255, .2);
    height: 460px;
    backdrop-filter: blur(20px);
    background: #34657a;
    border-radius: 60% / 10%;
    transform: translateY(-180px);
    transition: .7s ease-in-out;
}

.login label{
    padding: 10px;
    color: #fff;
    transform: scale(.6);
}

#chk:checked ~ .login{
    transform: translateY(-500px);
}

#chk:checked ~ .login label{
    transform: scale(1);
}

#chk:checked ~ .signup label{
    transform:scale(.6) ;
}
.loginbtn{
    background-color: #003f5a;
}
.loginbtn:hover{
    background: #013449;

}

.message-box {
        padding: 10px;
    margin-top: 10px;
    font-weight: bold;
    text-align: center; /* توسيط النص */
    border-radius: 8px;

}

