:root {
  --primary-forest: hsl(211, 100%, 50%);
  --primary-forest-rgb: 0, 123, 255;
  --accent-emerald: hsl(211, 100%, 40%);
  --accent-gold: hsl(0, 0%, 60%);
  --accent-gold-hover: hsl(0, 0%, 50%);
  --white: #ffffff;
  --bg-cream: hsl(40, 30%, 98%);
  --bg-light-slate: hsl(210, 15%, 96%);
  --text-dark: hsl(210, 20%, 15%);
  --text-muted: hsl(210, 10%, 45%);
  --font-heading: "Outfit", sans-serif;
  --font-body: "Lato", sans-serif;
  --shadow-md: 0 10px 20px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.08);
}

html {
  font-size: 14px !important;
}

body.login-page {
  background: linear-gradient(135deg, #f5f7fa 0%, #e4ebf5 100%);
  font-family: var(--font-body);
  color: var(--text-dark);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 0;
  padding: 30px 15px;
  overflow-x: hidden;
  overflow-y: auto;
  position: relative;
}

/* Decorative background shapes */
body.login-page::before,
body.login-page::after {
  content: "";
  position: absolute;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  z-index: 0;
  filter: blur(140px);
  opacity: 0.08;
}
body.login-page::before {
  background-color: var(--accent-emerald);
  top: 5%;
  left: 10%;
}
body.login-page::after {
  background-color: var(--accent-gold);
  bottom: 5%;
  right: 10%;
}

.login-box {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  padding: 0;
  position: relative;
  z-index: 10;
}

.login-logo {
  text-align: center;
  margin-bottom: 25px;
}

.login-logo img {
  height: 95px;
  width: auto;
  margin-bottom: 15px;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.08));
}

.login-logo-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.5px;
  line-height: 1.45;
  text-transform: uppercase;
  color: var(--text-dark);
  margin: 0;
}

.login-logo-hindi {
  display: block;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--accent-gold);
  margin-bottom: 5px;
  font-family: var(--font-heading);
  letter-spacing: 0;
}

.login-logo-subtitle {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: none;
  margin-top: 6px;
  font-weight: 400;
}

.login-box-body {
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.06);
  padding: 35px 30px;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
}

.login-box-msg {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 25px;
  text-align: center;
  letter-spacing: 0.5px;
  margin-top: 0;
}

.form-group.has-feedback {
  position: relative;
  margin-bottom: 20px;
}

.form-control {
  background: #f8fafc !important;
  border: 1px solid rgba(0, 0, 0, 0.12) !important;
  color: var(--text-dark) !important;
  height: 48px;
  border-radius: 8px;
  padding-left: 15px;
  padding-right: 45px;
  font-size: 1.05rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: none !important;
}

.form-control::placeholder {
  color: var(--text-muted);
  opacity: 0.6;
}

.form-control:focus {
  border-color: var(--accent-emerald) !important;
  box-shadow: 0 0 0 3px rgba(0, 105, 217, 0.15) !important;
  background: var(--white) !important;
}

.form-control-feedback {
  color: var(--text-muted);
  height: 48px;
  line-height: 48px;
  position: absolute;
  right: 15px;
  top: 0;
  font-size: 1.15rem;
  opacity: 0.7;
}

.btn-primary.btn-block {
  background-color: var(--primary-forest);
  border: none;
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 800;
  height: 48px;
  border-radius: 8px;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.15);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary.btn-block:hover,
.btn-primary.btn-block:focus {
  background-color: var(--accent-emerald);
  color: var(--white);
  transform: translateY(-1.5px);
  box-shadow: 0 6px 16px rgba(0, 105, 217, 0.25);
}

.btn-primary.btn-block:active {
  transform: translateY(0);
}

.checkbox-label {
  font-weight: 400;
  color: var(--text-dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  font-size: 0.95rem;
  user-select: none;
}

.checkbox-label input {
  cursor: pointer;
  width: 18px;
  height: 18px;
  accent-color: var(--accent-emerald);
}

.refresh-captcha-btn {
  height: 44px;
  width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background-color: var(--white);
  cursor: pointer;
  transition: all 0.3s;
}

.refresh-captcha-btn:hover {
  border-color: var(--accent-emerald) !important;
  background-color: var(--bg-light-slate) !important;
}

.refresh-captcha-btn:hover i {
  color: var(--accent-emerald) !important;
  transform: rotate(30deg);
}

.login-footer-links {
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
  padding-top: 18px;
}

.login-footer-links a {
  color: var(--primary-forest);
  text-decoration: none;
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}

.login-footer-links a:hover {
  color: var(--accent-emerald);
}

@media (max-width: 480px) {
  .login-box {
    width: 100%;
  }
  .login-box-body {
    padding: 25px 20px;
  }
}

/* Password visibility classes */
#admin_password {
  padding-right: 50px;
}

#admin_password + .form-control-feedback {
  right: 50px;
}

.password-toggle {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 0;
  color: var(--text-muted);
  cursor: pointer;
  z-index: 10;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  width: 30px;
}

/* Captcha classes */
.captcha-label {
  color: var(--text-dark);
  font-weight: 600;
  margin-bottom: 8px;
  display: block;
}

.captcha-container {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 12px;
}

.captcha-box {
  background: repeating-linear-gradient(
    45deg,
    #e8f5e9,
    #e8f5e9 10px,
    #e0f2f1 10px,
    #e0f2f1 20px
  );
  font-family: "Courier New", monospace;
  font-weight: 900;
  font-size: 1.5rem;
  letter-spacing: 5px;
  color: var(--primary-forest);
  text-decoration: line-through;
  user-select: none;
  padding: 10px 18px;
  border-radius: 8px;
  display: inline-block;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.06);
  cursor: pointer;
}

.refresh-captcha-btn i {
  color: var(--text-muted);
  transition: transform 0.3s;
}

.login-submit-row {
  margin-top: 15px;
}
