:root {
  --primary: #6b4ca3;
  --secondary: #b79ce6;
  --text-dark: #3f2f57;
  --text-soft: #5f4d7a;
  --bg-soft: #faf6ff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Montserrat', sans-serif;
  min-height: 100vh;
  background: radial-gradient(circle at top, #f3e8ff, #ffffff 70%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dark);
}

/* CONTENEDOR */
.login-section {
  width: 100%;
  padding: 20px;
}

/* CARD */
.login-card {
  max-width: 420px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 28px;
  padding: 48px 38px;
  box-shadow: 0 25px 60px rgba(107,76,163,.15);
  text-align: center;
}

/* TITULOS */
.login-card h1 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.login-subtitle {
  font-size: 1.05rem;
  color: var(--text-soft);
  line-height: 1.6;
  margin-bottom: 36px;
}

/* FORM */
.login-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.field {
  text-align: left;
}

.field label {
  display: block;
  font-size: .9rem;
  color: var(--text-soft);
  margin-bottom: 6px;
}

.field input {
  width: 100%;
  padding: 14px 18px;
  border-radius: 14px;
  border: 1px solid rgba(107,76,163,.2);
  font-size: 1rem;
  outline: none;
  transition: border .3s ease, box-shadow .3s ease;
}

.field input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(107,76,163,.15);
}

/* BOTON */
.btn-primary {
  margin-top: 18px;
  padding: 16px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #ffffff;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 14px 32px rgba(107,76,163,.4);
  transition: all .3s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(107,76,163,.45);
}

/* TEXTO AYUDA */
.login-help {
  margin-top: 32px;
  font-size: .85rem;
  color: var(--text-soft);
}

.login-help a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

.login-help a:hover {
  text-decoration: underline;
}

/* RESPONSIVE */
@media (max-width: 480px) {
  .login-card {
    padding: 42px 26px;
  }
}

.password-wrapper {
  position: relative;
}

.password-wrapper input {
  width: 100%;
  padding-right: 42px;
}

.toggle-password {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);

  background: none;
  border: none;
  cursor: pointer;

  font-size: 1.1rem;
  opacity: 0.6;
}

.toggle-password:hover {
  opacity: 1;
}
