/* ==========================================================
   Login/Registration styles (used by index.html)
   - Formatting and comments added for clarity
   - No visual or behavioral changes
   ========================================================== */

/* 1) Fonts */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700&display=swap");

/* 2) Reset and base typography */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

/* 3) Page background */
body {
  min-height: 100vh;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 4) Centered auth card container */
.container {
  max-width: 430px;
  width: 100%;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* 5) Login / Signup toggle via hidden checkbox */
.container .registration {
  /* signup panel hidden by default */
  display: none;
}
#check:checked ~ .registration {
  /* show signup when toggled */
  display: block;
}
#check:checked ~ .login {
  /* hide login when toggled */
  display: none;
}
#check {
  /* hidden checkbox driving the toggle */
  display: none;
}

/* 6) Form wrapper padding */
.container .form {
  padding: 3rem 2.5rem;
}

/* 7) Form header (title) */
.form header {
  font-size: 2.2rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 2rem;
  color: #2c3e50;
  letter-spacing: -0.5px;
}

/* 8) Form inputs */
.form input {
  height: 56px;
  width: 100%;
  padding: 0 18px;
  font-size: 16px;
  margin-bottom: 1.5rem;
  border: 2px solid #e1e8ed;
  border-radius: 12px;
  outline: none;
  background: #f8f9fa;
  transition: all 0.3s ease;
  color: #2c3e50;
}
.form input:focus {
  border-color: #667eea;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
  transform: translateY(-1px);
}
.form input::placeholder {
  color: #95a5a6;
}

/* 9) Inline links (forgot password, etc.) */
.form a {
  font-size: 15px;
  color: #667eea;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}
.form a:hover {
  color: #5a67d8;
  text-decoration: none;
}

/* 10) Primary form button */
.form input.button {
  color: #fff;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-top: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  height: 52px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}
.form input.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}
.form input.button:active {
  transform: translateY(0);
}

/* 11) Footer text + toggle label */
.signup {
  font-size: 15px;
  text-align: center;
  color: #7f8c8d;
  margin-top: 1.5rem;
}
.signup label {
  color: #667eea;
  cursor: pointer;
  font-weight: 600;
  transition: color 0.2s ease;
}
.signup label:hover {
  color: #5a67d8;
  text-decoration: none;
}
