@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;
}

body{
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #ffffff;
}

.container{
    position: relative;
    width : 95%;
    height : 800px;
    background : #fff;
    border-radius : 30px;
    box-shadow : 0 0 30px #c0392b;
    overflow: hidden;
    margin: 20px;
}

.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;
    transition: .6s ease-in-out 1.2s, visibility 0s 1s;
}

.container.active .form-box{
    right: 50%;
}
.formReg{
    display: flex;
    flex-direction: column;
    align-items: center;
}
.formReg .input-box{
    width: 50%;
}
.form-box.register{
    visibility: hidden;

}

.form-box.register h1{
    margin: 50px 20px;
    color: #d2272a;
}

.container.active .form-box.register{
    visibility: visible;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}


form{
    width: 100%;
}

.container h1{
    font-size: 36px;
    margin: -10px 0;
    margin-bottom: 50px;
}
.container .login h1{
    font-size: 36px;
    margin: -10px 0;
    margin-bottom: 20px;
    color: #d2272a;
}

.input-box{
    position: relative;
    margin: 10px 0;
}

.input-box input{
    flex: 1;
    width: 100%;
    padding: 13px 50px 13px 20px;
    background: #d3252a0f;
    border-radius: 8px;
    border: none;
    outline: none;
    font-size: 16px;
    color: #333;
    font-weight: 500;
    text-align: center;
}

.input-box input::placeholder {
    color: #888;
    font-weight: 400;

}

.input-box i{
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}
.input-box .title-input{
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: nowrap;

}

.input-box .title-input i{
    position:static;
    right: 0;
    top: 0;
    transform:none;
    margin: 5px;
}


.forgot-link{
    margin: -15px 0 15px;
}

.forgot-link a{
    font-size: 14.5px;
    color: #333;
    text-decoration: none;
}

.btn{
    width: 100%;
    height: 48px;
    background: #ff7c7e;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, .1);
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: #fff;
    font-weight: 600;
    border: dashed 1px #000000;
}
.btn:hover{
    width: 100%;
    height: 50px;
    background: #d2272a;
    border:none;
    font-size: 18px;
    transition: 0.25s ease-in-out;
}

.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;
}

img{
    width: 60%;
    height: auto;
}

.logo{
    display: flex;
    justify-content: center; /* لتوسيط الصورة أفقيًا */
    align-items: center; /* لتوسيط الصورة عموديًا */
}











.toggle-box{
    position: absolute;
    width: 100%;
    height: 100%;
}

.toggle-box::before{
    content: '';
    position: absolute;
    left: -250%;
    width: 300%;
    height: 100%;
    background: #ffffff;
    border-radius: 150px;
    z-index: 2;
    transition: 1.8s ease-in-out;
    box-shadow: 10px 20px 50px grey;
}

.container.active .toggle-box::before{
    left: 50%;
}

.toggle-panel{
    position: absolute;
    width: 50%;
    height: 100%;
    color: #000000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 2;
    transition: .6s ease-in-out;
    
}

.toggle-panel.toggle-left{
    left: 0;
    transition-delay: 1.2s;
    
}

.container.active .toggle-panel.toggle-left{
    left: -50%;
    transition-delay: .6s;
}

.toggle-panel.toggle-right{
    right: -50%;
    transition-delay: .6s;
}

.container.active .toggle-panel.toggle-right{
    right: 0;
    transition-delay: 1.2s;
}

.toggle-panel p{
    font-weight: 600;
}

.toggle-panel .btn{
    width: 160px;
    height: 46px;
    background: transparent;
    border: 2px solid #ccc;
    box-shadow: none;
    color: #ccc;
    transition: .6s ease-in-out;
}

.toggle-panel .btn:hover{
    width: 165px;
    height: 50px;
    background: #d3252a;
    border: 2px solid #000000;
    color: #000000;
}

/*-------------------------------------------------------*/
.role-buttons {
    display: flex;
    justify-content: space-between;
    margin: 20px 0px;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 30px;
    width: 100%;
}

.role-buttons button {
width: 48%;
padding: 10px 20px;
border: 1px dashed #d3252a;
background-color: #f0f0f0;
border-radius: 8px;
cursor: pointer;
transition: 0.3s;
font-size: 15px;
}
.role-buttons button:hover {
border: 2px dashed #d3252a;
background-color: #ff7c7e;
font-size: 16px;
}

.role-buttons button.active {
background-color: #d3252a;
color: white;
border:solid 1px #ffffff;

}




/*-------------------------------------------------------*/

@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{
        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%;
    }

    .toggle-panel.toggle-left{
        top: 0;
    }

    .container.active .toggle-panel.toggle-left{
        top: -30%;
        left: 0;
    }

    .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;
    }
}
/*------------------------------------Registration Failed popup-------------------------------*/
.popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  background: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
  z-index: 10000;
  animation: fadeIn 0.3s ease-in-out;
}

.popup-content {
  background: #fff;
  padding: 30px 40px;
  border-radius: 15px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  text-align: center;
  max-width: 400px;
  animation: slideUp 0.4s ease;
}

.popup-content h2 {
  margin-top: 0;
  font-size: 22px;
  color: #e74c3c;
}

.popup-content p {
  font-size: 16px;
  margin: 15px 0 25px;
  color: #555;
}

.popup-content button {
  background-color: #e74c3c;
  color: white;
  padding: 10px 25px;
  font-size: 15px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.popup-content button:hover {
  background-color: #c0392b;
}

@keyframes slideUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes fadeIn {
  from {
    background: rgba(0, 0, 0, 0);
  }
  to {
    background: rgba(0, 0, 0, 0.6);
  }
}







.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #4CAF50;
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    font-weight: bold;
    z-index: 9999;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
    animation: slideIn 0.4s ease;
}

.toast.error {
    background-color: #f44336;
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}
.selected {
    background-color: #4CAF50 !important;
    color: white !important;
    border: none !important;
}
form.form-reset {
    background: transparent;
    border: none;
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    display: block;
}
