/* Custom Auth & OTP Stylesheet for Forest Department */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  --font-primary: 'Plus Jakarta Sans', sans-serif;
  --auth-bg-gradient: linear-gradient(135deg, #064e3b 0%, #04241c 100%);
  --accent-emerald: #10b981;
  --accent-emerald-dark: #059669;
}

body.auth-body {
  font-family: var(--font-primary) !important;
  background: linear-gradient(135deg, rgba(6, 78, 59, 0.75) 0%, rgba(4, 36, 28, 0.85) 100%),
    url('../images/forest_bg.jpg') no-repeat center center fixed !important;
  background-size: cover !important;
  min-height: 100vh;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

/* Ambient Background Circles */
body.auth-body::before {
  content: '';
  position: absolute;
  width: 450px;
  height: 450px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.25) 0%, rgba(0, 0, 0, 0) 70%);
  top: -100px;
  left: -100px;
  z-index: 0;
}

body.auth-body::after {
  content: '';
  position: absolute;
  width: 550px;
  height: 550px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(5, 150, 105, 0.2) 0%, rgba(0, 0, 0, 0) 70%);
  bottom: -150px;
  right: -150px;
  z-index: 0;
}

/* Glassmorphic Auth Card */
.auth-wrapper {
  z-index: 1;
  width: 100%;
  max-width: 460px;
  padding: 20px;
}

.auth-card {
  background: rgba(255, 255, 255, 0.96) !important;
  backdrop-filter: blur(16px) !important;
  border-radius: 24px !important;
  border: 1px solid rgba(255, 255, 255, 0.5) !important;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35) !important;
  padding: 40px 32px !important;
  text-align: center;
}

.auth-logo {
  max-width: 350px;
  height: auto;
  margin-bottom: 24px;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.05));
}

.auth-title {
  font-size: 22px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  letter-spacing: -0.4px;
  margin-bottom: 6px;
}

.auth-subtitle {
  font-size: 14px !important;
  color: #64748b !important;
  margin-bottom: 28px;
  font-weight: 500;
}

/* Form Controls */
.form-group-custom {
  margin-bottom: 20px;
  text-align: left;
}

.form-label-custom {
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #334155 !important;
  margin-bottom: 6px;
  display: block;
}

.form-control-custom {
  width: 100%;
  border-radius: 12px !important;
  border: 1.5px solid #cbd5e1 !important;
  padding: 12px 16px !important;
  font-size: 14px !important;
  color: #0f172a !important;
  background: #ffffff !important;
  transition: all 0.2s ease !important;
  box-sizing: border-box;
}

.form-control-custom:focus {
  border-color: #10b981 !important;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.18) !important;
  outline: none !important;
}

/* Password Toggle Wrapper */
.password-toggle-group {
  position: relative;
}

.password-toggle-btn {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  font-size: 18px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}

.password-toggle-btn:hover {
  color: #10b981;
}

/* 6-Digit OTP Box Grid */
.otp-grid {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: 24px 0;
}

.otp-box {
  width: 48px !important;
  height: 56px !important;
  border-radius: 12px !important;
  border: 2px solid #cbd5e1 !important;
  font-size: 22px !important;
  font-weight: 700 !important;
  text-align: center !important;
  color: #047857 !important;
  background: #f8fafc !important;
  transition: all 0.2s ease !important;
  outline: none;
}

.otp-box:focus {
  border-color: #10b981 !important;
  background: #ffffff !important;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2) !important;
  transform: scale(1.05);
}

/* Action Button */
.btn-auth-primary {
  width: 100%;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  border-radius: 12px !important;
  padding: 13px 24px !important;
  font-size: 15px !important;
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.35) !important;
  border: none !important;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
  margin-top: 10px;
}

.btn-auth-primary:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
  box-shadow: 0 12px 25px rgba(16, 185, 129, 0.45) !important;
  transform: translateY(-2px);
}

/* Auth Links & Footer */
.auth-link {
  color: #059669 !important;
  font-weight: 600;
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s ease;
}

.auth-link:hover {
  color: #047857 !important;
  text-decoration: underline;
}

.auth-alert {
  border-radius: 12px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  padding: 10px 14px !important;
  margin-bottom: 20px;
  text-align: left;
}