
/* Auth Slider Component */
.auth-container {
  background-color: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 14px 28px rgba(0,0,0,0.25), 0 10px 10px rgba(0,0,0,0.22);
  position: relative;
  overflow: hidden;
  width: 768px;
  max-width: 100%;
  min-height: 480px;
}

.auth-form {
  background-color: var(--card-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 0 50px;
  height: 100%;
  text-align: center;
  color: var(--text);
}

.auth-form h1 {
  font-weight: bold;
  margin: 0;
  color: #fff;
}

.auth-form span {
  font-size: 12px;
  color: var(--mute);
  margin: 10px 0 20px;
}

.auth-form input {
  background-color: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 12px 15px;
  margin: 8px 0;
  width: 100%;
  border-radius: 4px;
  transition: all 0.3s ease;
}

/* Validation Styles */
.auth-form input.valid {
  border: 1px solid #10B981; /* Green */
  background-color: rgba(16, 185, 129, 0.1);
}

.auth-form input.invalid {
  border: 1px solid #EF4444; /* Red */
  background-color: rgba(239, 68, 68, 0.1);
}

.validation-msg {
  font-size: 11px;
  margin-top: -5px;
  margin-bottom: 5px;
  width: 100%;
  text-align: left;
  padding-left: 5px;
  display: none;
}

.validation-msg.error {
  color: #EF4444;
  display: block;
}

.validation-msg.success {
  color: #10B981;
  display: block;
}

.auth-form button {
  border-radius: 20px;
  border: 1px solid var(--green);
  background-color: var(--green);
  color: #FFFFFF;
  font-size: 12px;
  font-weight: bold;
  padding: 12px 45px;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: transform 80ms ease-in;
  margin-top: 10px;
  cursor: pointer;
}

.auth-form button:active {
  transform: scale(0.95);
}

.auth-form button:focus {
  outline: none;
}

button.ghost {
  background-color: transparent;
  border-color: #FFFFFF;
  color: #FFFFFF;
  border-radius: 20px;
  border: 1px solid #FFFFFF;
  font-size: 12px;
  font-weight: bold;
  padding: 12px 45px;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: transform 80ms ease-in;
  cursor: pointer;
  margin-top: 10px;
}

button.ghost:active {
  transform: scale(0.95);
}

button.ghost:focus {
  outline: none;
}

.form-container {
  position: absolute;
  top: 0;
  height: 100%;
  transition: all 0.6s ease-in-out;
}

.sign-in-container {
  left: 0;
  width: 50%;
  z-index: 2;
}

.auth-container.right-panel-active .sign-in-container {
  transform: translateX(100%);
}

.sign-up-container {
  left: 0;
  width: 50%;
  opacity: 0;
  z-index: 1;
}

.auth-container.right-panel-active .sign-up-container {
  transform: translateX(100%);
  opacity: 1;
  z-index: 5;
  animation: show 0.6s;
}

@keyframes show {
  0%, 49.99% {
    opacity: 0;
    z-index: 1;
  }
  50%, 100% {
    opacity: 1;
    z-index: 5;
  }
}

.overlay-container {
  position: absolute;
  top: 0;
  left: 50%;
  width: 50%;
  height: 100%;
  overflow: hidden;
  transition: transform 0.6s ease-in-out;
  z-index: 100;
}

.auth-container.right-panel-active .overlay-container {
  transform: translateX(-100%);
}

.overlay {
  background: #0b6a34;
  background: -webkit-linear-gradient(to right, #085129, #0b6a34);
  background: linear-gradient(to right, #085129, #0b6a34);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: 0 0;
  color: #FFFFFF;
  position: relative;
  left: -100%;
  height: 100%;
  width: 200%;
  transform: translateX(0);
  transition: transform 0.6s ease-in-out;
}

.auth-container.right-panel-active .overlay {
  transform: translateX(50%);
}

.overlay-panel {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 0 40px;
  text-align: center;
  top: 0;
  height: 100%;
  width: 50%;
  transform: translateX(0);
  transition: transform 0.6s ease-in-out;
}

.overlay-panel h1 {
  font-weight: bold;
  margin: 0 0 10px;
  color: #fff;
}
.overlay-panel p {
  font-size: 14px;
  font-weight: 300;
  line-height: 20px;
  letter-spacing: 0.5px;
  margin: 20px 0 30px;
}

.overlay-left {
  transform: translateX(-20%);
}

.auth-container.right-panel-active .overlay-left {
  transform: translateX(0);
}

.overlay-right {
  right: 0;
  transform: translateX(0);
}

.auth-container.right-panel-active .overlay-right {
  transform: translateX(20%);
}

.close-auth {
  position: absolute;
  top: 10px;
  right: 15px;
  background: none;
  border: none;
  font-size: 24px;
  color: #aaa;
  cursor: pointer;
  z-index: 200;
}
.close-auth:hover { color: var(--text); }

/* Responsive */
@media (max-width: 768px) {
  .auth-container { 
      width: 100%; 
      min-height: auto; 
      display: block;
      overflow: visible;
  }
  .overlay-container { display: none; }
  
  .form-container {
      position: relative;
      width: 100%;
      height: auto;
      transition: none;
      opacity: 1;
      z-index: 1;
  }
  
  /* Mobile State Logic */
  .sign-up-container { display: none; }
  .sign-in-container { display: block; }
  
  .auth-container.right-panel-active .sign-in-container { display: none; }
  .auth-container.right-panel-active .sign-up-container { 
      display: block; 
      transform: none; 
      animation: none;
  }
  
  .auth-form { padding: 40px 20px; }
  .mobile-switch { 
      display: block; 
      margin-top: 20px; 
      cursor: pointer; 
      color: #0b6a34; 
      text-decoration: underline; 
  }

  /* Fix Date Input on Mobile */
  input[type="date"] {
    min-height: 44px;
    background-color: var(--bg) !important;
    color: var(--text) !important;
    appearance: none;
    -webkit-appearance: none;
    position: relative;
    width: 100%;
  }
}

@media (min-width: 769px) { 
  .mobile-switch { display: none; } 
}
