.auth-layout {
  min-height: 100vh;           
  display: flex;               
  justify-content: center;     
  align-items: center;         
  margin: 0;                   
  background: url(../../public/images/bg1.jpg) no-repeat, #3C3D37;
  background-size: cover;      
}

.auth-wrapper {
  width: 100%;
  max-width: 800px; 
  height: 500px;                 /* made taller for panel space */
  background-color: #D9D9D9;
  padding: 5px;
  border-radius: 10px;         
  box-shadow: 0 4px 10px rgba(0,0,0,0.2); 
}

.log-in-wrapper {
  position: relative;            /* key: makes panel absolute inside */
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: space-around;
  align-items: center;
  overflow: hidden;              /* hide overflow during animation */
}

/* Forms */
.form {
  width: 30%;
  z-index: 1;    
  display: flex;
  flex-direction: column;                /* keep forms above panel */
}

.form input {
    background-color: #3C3D37;
    color: #fff;
    cursor: pointer;
    border: none;
    margin: 5px 0;
    padding: 8px 20px;
    width: 100%;
    margin-bottom: 15px;
}
.panel-content button {
    border: none;
    margin-top: 20px;
}

.form h2 {
    margin-bottom: 10px;
}

.panel-content button,
.form button {
    background-color: #000;
    color: #fff;
    border: 1px solid;
    border-radius: 20px;
    width: 100%;
    padding: 8px;
    cursor: pointer;
}

/* Panel */
.auth-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;                    
  height: 100%;
  background: #000;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.5s ease-in-out;
  z-index: 2;
  transform: translateX(0);   /* default: stay visible on the right */
}

/* When wrapper is active, slide panel left */
.log-in-wrapper.active .auth-panel {
  transform: translateX(-100%);
}