/* ── Login Page ─────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

.login-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #F9FAFB;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow: hidden;
}

/* ── Subtle grid background ──────────────────────────────────────── */
.login-grid-bg {
  position: absolute;
  inset: 0;
  opacity: 0.08;
  background-image:
    linear-gradient(rgba(245, 193, 22, 0.3) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 193, 22, 0.3) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

/* ── Wrapper ─────────────────────────────────────────────────────── */
.login-wrapper {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 400px;
  padding: 24px;
  text-align: center;
}

/* ── Logo ─────────────────────────────────────────────────────────── */
.login-logo-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 32px;
}
.login-logo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
}

/* ── Title ────────────────────────────────────────────────────────── */
.login-title {
  font-size: 2rem;
  font-weight: 800;
  color: #111827;
  letter-spacing: -0.02em;
}

.login-subtitle {
  margin: 6px 0 36px;
  font-size: 0.95rem;
  color: #6B7280;
  font-weight: 500;
}

/* ── Form ─────────────────────────────────────────────────────────── */
.login-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: left;
}

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

.login-label {
  font-size: 0.85rem;
  font-weight: 500;
  color: #6B7280;
}

.login-form input[type="text"],
.login-form input[type="email"],
.login-form input[type="password"] {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #E5E7EB;
  border-radius: 10px;
  background: #FFFFFF;
  color: #111827;
  font-size: 0.95rem;
  font-family: inherit;
  font-weight: 500;
  outline: none;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.login-form input[type="text"]::placeholder,
.login-form input[type="email"]::placeholder,
.login-form input[type="password"]::placeholder {
  color: #9CA3AF;
  font-weight: 400;
}

.login-form input[type="text"]:focus,
.login-form input[type="email"]:focus,
.login-form input[type="password"]:focus {
  border-color: #f5c116;
  box-shadow: 0 0 0 3px rgba(245, 193, 22, 0.18);
}

/* ── Error message ────────────────────────────────────────────────── */
.login-error {
  padding: 10px 14px;
  background: #FEF2F2;
  border: 1px solid #FECACA;
  border-radius: 10px;
  color: #B91C1C;
  font-size: 0.88rem;
  font-weight: 600;
  text-align: center;
}

.login-error.hidden {
  display: none;
}

/* ── Button ───────────────────────────────────────────────────────── */
.login-btn {
  width: 100%;
  padding: 14px 20px;
  border: none;
  border-radius: 10px;
  background: #f5c116;
  color: #1A1A1A;
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background 150ms ease, transform 120ms ease;
}

.login-btn:hover {
  background: #d4a614;
}

.login-btn:active {
  transform: scale(0.98);
}

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

/* ── Links ────────────────────────────────────────────────────────── */
.login-forgot {
  display: inline-block;
  margin-top: 20px;
  font-size: 0.88rem;
  color: #6B7280;
  text-decoration: none;
  font-weight: 500;
  transition: color 150ms ease;
}

.login-forgot:hover {
  color: #f5c116;
}

.login-signup {
  margin: 16px 0 0;
  font-size: 0.88rem;
  color: #6B7280;
  font-weight: 500;
}

.login-signup-link {
  color: #f5c116;
  text-decoration: none;
  font-weight: 600;
  transition: color 150ms ease;
}

.login-signup-link:hover {
  color: #d4a614;
  text-decoration: underline;
}

/* ── Success box ─────────────────────────────────────────────────── */
.login-success-box {
  padding: 20px;
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
  border-radius: 12px;
  text-align: center;
}

.login-success-text {
  font-size: 0.95rem;
  font-weight: 600;
  color: #166534;
  line-height: 1.5;
}

/* ── Responsive ───────────────────────────────────────────────────── */
@media (max-width: 500px) {
  .login-wrapper {
    padding: 16px;
  }
}
