/* --- Brand & Aero-Glass Colors --- */
:root {
  /* User Colors */
  --primary-color: #044569;
  /* Deep Blue (Main Text/Header) */
  --secondary-color: #058F48;
  /* Vibrant Green (Accent/CTA) */

  /* Aero-Glass Base */
  --bg-color: #e0e5ec;
  --glass-bg: rgba(255, 255, 255, 0.1);
  /* Semi-transparent white */
  --glass-border: rgba(255, 255, 255, 0.2);

  /* Neumorphism Base (Used only for subtle shadows/depth) */
  --dark-shadow: #a3b1c6;
  --white-shadow: #ffffff;

  --text-light: #f5f5f5;
  --text-dark: var(--primary-color);
  --text-subtle: #9ca3af;

  --card-width: 440px;
  --radius-default: 24px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

.body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  /* Background with a subtle gradient/texture for the glass to blur */
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-color) 40%, #0093E9 100%);
  overflow: auto;
  padding: 20px;
}

/* --- Background Element for Visual Interest (Optional but improves glass) --- */
.background-dots {
  position: absolute;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 10% 10%, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
    radial-gradient(circle at 90% 90%, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.5;
}

/* --- Main Glass Card (The 'Aero' effect) --- */
.auth-card {
  position: relative;
  z-index: 10;
  width: var(--card-width);
  border-radius: var(--radius-default);
  padding: 50px 30px;
  min-height: 580px;
  display: flex;
  flex-direction: column;
  align-items: center;

  /* The Glass Effect */
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  /* Soft Neumorphic Shadowing for elevation */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15),
    0 0 10px rgba(255, 255, 255, 0.15) inset;
  color: var(--text-light);
  /* Default text color is white/light */
}

.auth-card h1 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-light);
  margin-bottom: 5px;
  text-shadow: 0 0 5px rgba(0, 0, 0, 0.4);
}

.auth-card .tagline {
  color: var(--text-subtle);
  margin-bottom: 40px;
  font-size: 0.95rem;
}

/* --- Toggle Switch (Vibrant Green Indicator) --- */
.toggle-container {
  width: 100%;
  height: 55px;
  border-radius: 16px;
  margin-bottom: 40px;
  padding: 6px;
  display: flex;
  position: relative;
  /* Subtly pressed/concave container */
  background: rgba(0, 0, 0, 0.2);
  box-shadow: inset 2px 2px 5px rgba(0, 0, 0, 0.3);
}

.toggle-switch {
  flex: 1;
  text-align: center;
  line-height: 43px;
  font-weight: 600;
  z-index: 10;
  cursor: pointer;
  color: var(--text-light);
  transition: color 0.3s ease;
}

.toggle-indicator {
  position: absolute;
  top: 6px;
  left: 6px;
  width: calc(50% - 6px);
  height: 43px;
  border-radius: 12px;
  /* Bright Green for high contrast */
  background: var(--secondary-color);
  /* Soft shadow */
  box-shadow: 0 0 15px rgba(5, 143, 72, 0.6);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Switch state (moves the indicator to the right) */
.auth-card.sign-up-mode .toggle-indicator {
  transform: translateX(100%);
}

/* --- Form Slider and Boxes (Similar to previous, but styled for Glass) --- */
.form-slider {
  position: relative;
  width: 100%;
  height: 350px;
  overflow: hidden;
}

.form-box {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  display: flex;
  flex-direction: column;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s;
}

.sign-up-form {
  transform: translateX(100%);
  opacity: 0;
}

.auth-card.sign-up-mode .sign-in-form {
  transform: translateX(-100%);
  opacity: 0;
}

.auth-card.sign-up-mode .sign-up-form {
  transform: translateX(0);
  opacity: 1;
}


/* --- Input Styling (Semi-Transparent and Underlined) --- */
.input-group {
  position: relative;
  margin-bottom: 30px;
}

.input-group input {
  width: 100%;
  padding: 12px 15px 12px 45px;
  border: none;
  outline: none;
  font-size: 1rem;
  color: var(--text-light);
  border-radius: 10px;
  /* Transparent background, thin white border */
  background: rgba(255, 255, 255, 0.1);
  border-bottom: 2px solid rgba(255, 255, 255, 0.4);
  transition: all 0.3s ease;
}

.input-group input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

/* Focus state: Primary blue underline */
.input-group input:focus {
  background: rgba(255, 255, 255, 0.2);
  border-bottom-color: var(--secondary-color);
  box-shadow: 0 1px 0 var(--secondary-color);
}

/* Icon inside input field */
.input-group .inp_icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  font-size: 1.2rem;
  transition: color 0.3s;
}

.input-group input:focus~.bx {
  color: var(--secondary-color);
}

/* --- Button Styling (Vibrant Accent) --- */
.action-btn {
  width: 100%;
  padding: 14px;
  margin-top: 10px;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  color: var(--text-light);
  background: var(--secondary-color);
  /* Vibrant Green */
  box-shadow: 0 4px 15px rgba(5, 143, 72, 0.4);
}

.action-btn:hover {
  background: #06b259;
  box-shadow: 0 6px 20px rgba(5, 143, 72, 0.6);
  transform: translateY(-2px);
}

.utility-link {
  font-size: 0.85rem;
  color: #fff;
  text-decoration: none;
  margin-top: 5px;
  transition: color 0.3s;
  text-shadow: none;
  /* remove shadow for cleaner link */
}

.utility-link:hover {
  color: var(--secondary-color);
}

/* Responsive adjustments for smaller screens */
@media (max-width: 480px) {
  .auth-card {
    width: 95%;
    padding: 40px 20px;
    min-height: 500px;
  }

  .auth-card h1 {
    font-size: 2rem;
  }

  .toggle-container {
    height: 50px;
  }

  .toggle-indicator {
    height: 38px;
  }

  .toggle-switch {
    line-height: 38px;
    font-size: 0.9rem;
  }
}
.password-group {
  position: relative;
}

.password-group .toggle-password {
  position: absolute;
  right: 15px !important;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  transition: color 0.3s;
}

.password-group .toggle-password:hover {
  /*color: var(--secondary-color);*/
}
