/* ── auth-pages.css ── Shared styles for login, reset-password, change-password ── */

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; }

body.login-page {
  margin: 0;
  min-height: 100vh;
  font-family: 'Inter', 'Nunito', sans-serif;
  background: #f0f2f5;
  background-image:
    radial-gradient(ellipse at 20% 50%, rgba(191, 108, 12, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(232, 160, 64, 0.05) 0%, transparent 50%),
    radial-gradient(ellipse at 60% 90%, rgba(191, 108, 12, 0.04) 0%, transparent 50%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow-y: auto;
}

/* ── Decorative top bar ── */
body.login-page::before {
  content: '';
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 5px;
  background: linear-gradient(90deg, #bf6c0c 0%, #e8a040 50%, #bf6c0c 100%);
  z-index: 10;
}

/* ── Subtle geometric pattern ── */
body.login-page::after {
  content: '';
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-image:
    radial-gradient(circle at 25% 25%, rgba(191, 108, 12, 0.03) 1px, transparent 1px),
    radial-gradient(circle at 75% 75%, rgba(191, 108, 12, 0.02) 1px, transparent 1px);
  background-size: 40px 40px;
  z-index: 0;
  pointer-events: none;
}

/* ── Login Wrapper ── */
.login-wrapper {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  padding: 20px;
  animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
  transform: translateY(24px);
}

@keyframes slideUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ── Brand / Logo ── */
.login-logo {
  text-align: center;
  margin-bottom: 28px;
}
.login-logo img {
  max-width: 190px;
  height: auto;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.08));
}

/* ── White Card ── */
.login-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 20px;
  padding: 40px 36px 32px;
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.04),
    0 4px 12px rgba(0, 0, 0, 0.06),
    0 12px 40px rgba(0, 0, 0, 0.06);
}

.login-card h2 {
  color: #1a1a2e;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 6px;
  text-align: center;
}
.login-card .login-subtitle {
  color: #8c95a6;
  font-size: 14px;
  text-align: center;
  margin-bottom: 32px;
  font-weight: 400;
}

/* ── Form Groups ── */
.login-form-group {
  margin-bottom: 22px;
  position: relative;
}
.login-form-group label {
  display: block;
  color: #4a5568;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
  margin-bottom: 8px;
}

.login-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.login-input-wrap .input-icon {
  position: absolute;
  left: 16px;
  color: #b0b8c4;
  font-size: 15px;
  transition: color 0.3s;
  z-index: 2;
}
.login-input-wrap input {
  width: 100%;
  padding: 13px 16px 13px 46px;
  background: #f7f8fa;
  border: 1.5px solid #e2e6ed;
  border-radius: 12px;
  color: #1a1a2e;
  font-size: 14px;
  font-family: inherit;
  transition: all 0.25s ease;
  outline: none;
  height: auto;
}
.login-input-wrap input::placeholder {
  color: #b0b8c4;
}
.login-input-wrap input:hover {
  border-color: #c8cdd6;
  background: #f3f4f7;
}
.login-input-wrap input:focus {
  border-color: #bf6c0c;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(191, 108, 12, 0.1);
}
.login-input-wrap:focus-within .input-icon {
  color: #bf6c0c;
}

/* ── Password help text ── */
.login-form-group .pwd-help {
  margin-top: 8px;
  font-size: 12px;
  color: #8c95a6;
  line-height: 1.5;
}
.login-form-group .pwd-help strong {
  color: #4a5568;
}

/* ── Label row (label + link) ── */
.login-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.login-label-row label {
  margin-bottom: 0;
}
.login-label-row a {
  color: #bf6c0c;
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.3s;
}
.login-label-row a:hover {
  color: #9f5a0b !important;
  text-decoration: underline;
}

/* ── Submit Button ── */
.login-btn {
  width: 100%;
  padding: 14px;
  margin-top: 8px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #bf6c0c 0%, #d4880e 100%);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  letter-spacing: 0.3px;
  box-shadow: 0 4px 14px rgba(191, 108, 12, 0.3);
}
.login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(191, 108, 12, 0.4);
  background: linear-gradient(135deg, #d4780e 0%, #e89830 100%) !important;
}
.login-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(191, 108, 12, 0.25);
}
.login-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}
.login-btn::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}
.login-btn:hover::after {
  left: 100%;
}

/* ── Footer ── */
.login-footer {
  text-align: center;
  margin-top: 28px;
  color: #a0a8b4;
  font-size: 12px;
}

/* ── Toggle password visibility ── */
.toggle-password {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #b0b8c4;
  cursor: pointer;
  font-size: 15px;
  padding: 0;
  z-index: 2;
  transition: color 0.3s;
}
.toggle-password:hover {
  color: #bf6c0c;
}

/* ── Security badge ── */
.security-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 20px;
  color: #a0a8b4;
  font-size: 11px;
}
.security-badge i {
  font-size: 12px;
  color: #48bb78;
}

/* ── Back link ── */
.login-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #bf6c0c;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.3s;
  margin-top: 16px;
}
.login-back-link:hover {
  color: #9f5a0b !important;
}
.login-back-link i {
  font-size: 11px;
}

/* ── Responsive ── */
@media (max-width: 480px) {
  .login-card {
    padding: 32px 24px 24px;
    border-radius: 16px;
  }
  .login-wrapper {
    padding: 16px;
  }
  .login-logo img {
    max-width: 160px;
  }
}
