/* ===== Base Styling ===== */
body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(135deg, #ff7a00, #ffae42, #ffffff);
  background-size: 400% 400%;
  animation: flow 14s ease infinite;
  margin: 0;
  padding: 0;
  color: #222;
  transition: background 0.4s ease, color 0.4s ease;
}

@keyframes flow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ===== Overlay ===== */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(6px);
  z-index: -1;
}

/* ===== Login Intro ===== */
.why-login {
  text-align: center;
  padding: 4rem 2rem;
  color: #333;
}

.why-login h3 {
  font-size: 2.3rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  letter-spacing: 0.5px;
  color: #ff7a00;
}

.why-login h6 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  opacity: 0.9;
  font-style: italic;
  color: #555;
}

.why-login .cta {
  font-size: 1.2rem;
  font-weight: 700;
  color: #ff7a00;
}

/* ===== Form Styling ===== */
.form-structor {
  max-width: 420px;
  margin: 2rem auto 5rem;
  padding: 2.2rem;
  border-radius: 20px;
  background: #fff;
  border: 1px solid #ffae42;
  box-shadow: 0 4px 18px rgba(0,0,0,0.15);
  transition: background 0.4s ease, color 0.4s ease;
}

.form-title {
  font-size: 1.8rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1.6rem;
  color: #ff7a00;
}

/* ===== Input Fields ===== */
.form-holder {
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
}

.input {
  width: 100%;
  padding: 1rem;
  border: 1.5px solid #ddd;
  border-radius: 12px;
  font-size: 1rem;
  background: #fafafa;
  color: #333;
  transition: all 0.3s ease;
}

.input::placeholder {
  color: #aaa;
  font-style: italic;
}

.input:focus {
  border-color: #ff7a00;
  background: #fff;
  outline: none;
}

/* ===== Toggle Password ===== */
.toggle-password {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 1.1rem;
  color: #ff7a00;
  cursor: pointer;
  transition: color 0.3s;
}

.toggle-password:hover {
  color: #ffae42;
}

/* ===== Buttons ===== */
.submit-btn {
  width: 100%;
  padding: 1rem;
  border: none;
  border-radius: 12px;
  background: linear-gradient(90deg, #ff7a00, #ffae42);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
}

.submit-btn:hover {
  background: linear-gradient(90deg, #ffae42, #ff7a00);
  transform: translateY(-2px);
}

/* ===== Divider ===== */
.or-divider {
  text-align: center;
  font-size: 0.9rem;
  color: #888;
  margin: 1rem 0;
  position: relative;
}

.or-divider::before,
.or-divider::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 35%;
  height: 1px;
  background: #ddd;
}

.or-divider::before { left: 0; }
.or-divider::after { right: 0; }

/* ===== Mobile Responsiveness ===== */
@media (max-width: 500px) {
  .form-structor {
    margin: 1rem;
    padding: 1.6rem;
  }
  .form-title {
    font-size: 1.5rem;
  }
  .why-login h3 {
    font-size: 1.7rem;
  }
}

/* ===== Dark Mode ===== */
@media (prefers-color-scheme: dark) {
  body {
    background: linear-gradient(135deg, #1a1a1a, #292929, #ff7a00);
    color: #eee;
  }

  .why-login {
    color: #eee;
  }

  .why-login h3 {
    color: #ffae42;
  }

  .why-login h6 {
    color: #ccc;
  }

  .form-structor {
    background: #222;
    border: 1px solid #ff7a00;
    box-shadow: 0 4px 18px rgba(0,0,0,0.4);
    color: #eee;
  }

  .form-title {
    color: #ffae42;
  }

  .input {
    background: #2b2b2b;
    border-color: #444;
    color: #eee;
  }

  .input::placeholder {
    color: #aaa;
  }

  .input:focus {
    border-color: #ff7a00;
    background: #333;
  }

  .toggle-password {
    color: #ffae42;
  }

  .submit-btn {
    background: linear-gradient(90deg, #ff7a00, #ffae42);
    color: #fff;
  }

  .or-divider {
    color: #bbb;
  }

  .or-divider::before,
  .or-divider::after {
    background: #444;
  }
}
