/* Login page - העמוד של עפרי להתחברות */

.login-body {
  padding-bottom: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.login-wrap {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.login-card {
  max-width: 420px;
  width: 100%;
  padding: 36px 28px 32px;
  background: rgba(61, 26, 110, 0.55);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  border-radius: 28px;
  box-shadow: var(--shadow-card), var(--glow-purple);
  text-align: center;
  animation: cardIn 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.login-sparkle {
  font-size: 3.5rem;
  display: inline-block;
  animation: sparkleSpin 3s ease-in-out infinite;
  filter: drop-shadow(0 0 20px rgba(255, 217, 102, 0.8));
  margin-bottom: 8px;
}

.login-title {
  font-family: var(--font-fancy);
  font-size: clamp(2rem, 8vw, 2.6rem);
  color: #fff;
  text-shadow:
    0 0 16px rgba(255, 181, 216, 0.9),
    0 0 32px rgba(155, 89, 246, 0.6);
  margin-bottom: 6px;
  line-height: 1.1;
}

.login-sub {
  color: var(--pink-pale);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 28px;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: right;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field-label {
  font-size: 0.9rem;
  color: var(--pink-pale);
  font-weight: 700;
  padding-right: 6px;
}

.field input[type="text"],
.field input[type="password"] {
  width: 100%;
  padding: 14px 18px;
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  border-radius: 14px;
  outline: none;
  transition: all 0.25s;
  direction: ltr;
  text-align: right;
}

.field input:focus {
  border-color: var(--pink-soft);
  background: rgba(255, 255, 255, 0.18);
  box-shadow: 0 0 0 4px rgba(255, 79, 168, 0.15);
}

.password-wrap {
  position: relative;
}

.password-wrap input {
  padding-left: 50px !important;
}

.eye-btn {
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.eye-btn:hover { background: rgba(255, 255, 255, 0.22); }

.eye-icon {
  font-size: 1.1rem;
  line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
}

.login-btn {
  margin-top: 8px;
  padding: 16px 22px;
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 900;
  color: #fff;
  background: linear-gradient(135deg, var(--pink-hot), var(--purple-light));
  border: none;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: var(--glow-pink);
  transition: all 0.3s;
  -webkit-tap-highlight-color: transparent;
}

.login-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 0 32px rgba(255, 79, 168, 0.8);
}

.login-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.error-msg {
  color: #FFD966;
  background: rgba(255, 79, 168, 0.18);
  border: 1px solid rgba(255, 79, 168, 0.4);
  padding: 12px 16px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 0.95rem;
  text-align: center;
}

.forgot-link {
  background: none;
  border: none;
  color: var(--pink-soft);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  padding: 4px;
  text-decoration: underline;
  text-decoration-color: rgba(255, 181, 216, 0.5);
  text-underline-offset: 3px;
  align-self: center;
  margin-top: 4px;
}

.forgot-link:hover { color: #fff; }

.login-hint {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--silver-mid);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Forgot modal */
.forgot-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: 20px;
}
.forgot-modal[hidden] { display: none; }

.forgot-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 3, 30, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: fadeIn 0.3s;
}

.forgot-card {
  position: relative;
  max-width: 380px;
  width: 100%;
  padding: 32px 28px;
  background: linear-gradient(160deg, #4A1A8A, #7B3FC0 60%, #9B59F6);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  border-radius: 28px;
  text-align: center;
  box-shadow: var(--glow-purple), 0 20px 60px rgba(0, 0, 0, 0.5);
  animation: modalIn 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.forgot-close {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.forgot-emoji {
  font-size: 4rem;
  margin-bottom: 8px;
  animation: crownBob 2s ease-in-out infinite;
}

.forgot-title {
  font-family: var(--font-fancy);
  font-size: 1.9rem;
  color: #fff;
  margin-bottom: 14px;
  text-shadow: 0 0 12px rgba(255, 181, 216, 0.8);
}

.forgot-text {
  color: var(--pink-pale);
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 12px;
}

.forgot-text--small {
  font-size: 0.95rem;
  color: var(--gold);
  margin-bottom: 20px;
}

.forgot-ok {
  padding: 12px 28px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 800;
  color: var(--purple-deep);
  background: linear-gradient(135deg, var(--gold), var(--pink-soft));
  border: none;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: var(--glow-gold);
}

@media (max-width: 480px) {
  .login-card { padding: 28px 20px 24px; }
  .login-wrap { padding: 24px 16px; }
}
