/* ==========================================================================
   Andhra Pradesh Endowments Department - IVRS Dashboard Login Webpage
   Exact Responsive Theme Stylesheet
   ========================================================================== */

:root {
  --color-maroon: #7b0c16;
  --color-maroon-dark: #5d0711;
  --color-maroon-light: #941320;
  --color-maroon-subtle: #4a181b;
  --color-gold: #c8963e;
  --color-gold-light: #dfb15b;
  --color-gold-border: #ecd599;
  --color-gold-glow: rgba(200, 150, 62, 0.3);
  --color-teal-govt: #0a4734;
  --color-header-bg: #fcf8f4;
  --color-body-text: #2f1d1e;
  --font-heading: "Cinzel", "Playfair Display", Georgia, serif;
  --font-tagline: "Playfair Display", Georgia, serif;
  --font-body:
    "Poppins", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --transition-standard: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Styles */
* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--color-body-text);
  background-color: var(--color-header-bg);
  overflow-x: hidden;
}

body {
  display: flex;
  flex-direction: column;
}

/* ==========================================================================
   TOP HEADER
   ========================================================================== */
.site-header {
  /* background-color: var(--color-header-bg); */
  background: url(../images/background/login_header.png) no-repeat;
  background-size: 102% 104%;
  background-position: bottom;
  /* padding: 18px 0px; */
  position: relative;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.header-container {
  padding: 8px 24px;
}

.govt-emblem {
  height: 68px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.06));
  transition: var(--transition-standard);
}

.govt-emblem:hover {
  transform: scale(1.02);
}

.dept-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-teal-govt);
  line-height: 1.15;
  margin-bottom: 2px;
  letter-spacing: 0.3px;
}

.govt-subtitle {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-teal-govt);
  letter-spacing: 0.2px;
}

.header-divider {
  width: 1.5px;
  height: 48px;
  background: linear-gradient(
    to bottom,
    transparent,
    var(--color-gold-light),
    transparent
  );
  margin: 0 28px;
}

.ivrs-badge-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    var(--color-maroon) 0%,
    var(--color-maroon-dark) 100%
  );
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: 0 3px 8px rgba(123, 12, 22, 0.35);
  flex-shrink: 0;
}

.ivrs-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-maroon);
  line-height: 1.2;
  margin-bottom: 2px;
  letter-spacing: 0.2px;
}

.ivrs-subtitle {
  font-family: var(--font-tagline);
  font-size: 0.95rem;
  font-style: italic;
  color: var(--color-maroon-subtle);
  font-weight: 500;
}

.header-temple-img {
  height: 78px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.05));
}

.header-gold-line {
  height: 3px;
  background: linear-gradient(
    90deg,
    #c8963e 0%,
    #ecd599 35%,
    #dfa745 70%,
    #c8963e 100%
  );
  width: 100%;
}

/* ==========================================================================
   MAIN HERO SECTION
   ========================================================================== */
.hero-section {
  flex: 1;
  position: relative;
  background-image: url("../images/background/login_banner.png");
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-position: top;
  /* display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-top: 24px;
  min-height: calc(100vh - 86px); */
}

/* Exact mockup mode support */
body.mode-mockup-bg .hero-section {
  background-image: url("../images/original_mockup.jpg");
}

.hero-container {
  padding-left: 24px;
  padding-right: 24px;
  position: relative;
  z-index: 10;
}

.hero-row {
  /* min-height: 480px; */
}

/* Center Content Column */
.center-content-column {
  /* padding: 10px 15px; */
  /* display: flex; */
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  top: 20px;
}

/* Tagline */
.hero-tagline {
  font-family: var(--font-tagline);
  font-size: 1.7rem;
  font-style: italic;
  font-weight: 600;
  color: var(--color-maroon);
  letter-spacing: 0.5px;
  position: relative;
  /* bottom: 30px; */
  /* margin-top: -100px; */
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.tagline-sep {
  color: var(--color-maroon);
  margin: 0 8px;
  font-weight: 400;
  opacity: 0.85;
}

/* Lotus Divider */
.lotus-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 2px 0 12px 0;
  width: 100%;
}

.lotus-line {
  height: 1px;
  flex: 1;
  max-width: 100px;
  background: linear-gradient(90deg, transparent, #c8963e, #c8963e);
}

.lotus-line.right {
  background: linear-gradient(90deg, #c8963e, #c8963e, transparent);
}

.lotus-img {
  height: 28px;
  margin: 0 8px;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

/* Maroon Pill Badge */
.pill-badge-wrapper {
  margin-bottom: 10px;
  width: 100%;
}

.hero-pill-badge {
  display: inline-block;
  background: linear-gradient(
    135deg,
    var(--color-maroon) 0%,
    var(--color-maroon-dark) 100%
  );
  color: #ffffff;
  /* font-family: var(--font-tagline); */
  font-size: 0.65rem;
  font-style: italic;
  font-weight: 500;
  padding: 6px 28px;
  border-radius: 50px;
  border: 1.5px solid var(--color-gold-light);
  box-shadow: 0 3px 10px rgba(123, 12, 22, 0.35);
  letter-spacing: 0.3px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* 8 Features Grid */
.features-grid {
  width: 100%;
  /* max-width: 540px; */
}

.feature-col {
  /* padding: 6px 4px; */
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: var(--transition-standard);
  padding: 4px;
  border-radius: 8px;
}

.feature-item:hover {
  transform: translateY(-4px);
}

.feature-icon-circle {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: radial-gradient(
    circle at 35% 35%,
    #fdefce 0%,
    #fceed8 60%,
    #f6dcba 100%
  );
  border: 2px solid rgba(200, 150, 62, 0.5);
  box-shadow:
    0 3px 8px rgba(0, 0, 0, 0.08),
    inset 0 1px 2px rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  color: var(--color-maroon);
  margin-bottom: 6px;
  transition: var(--transition-standard);
}

.feature-item:hover .feature-icon-circle {
  background: radial-gradient(
    circle at 35% 35%,
    #ffffff 0%,
    #ffeacc 60%,
    #fed8a6 100%
  );
  border-color: var(--color-gold);
  box-shadow:
    0 6px 14px rgba(123, 12, 22, 0.22),
    0 0 0 3px var(--color-gold-glow);
  color: var(--color-maroon-light);
  transform: scale(1.06);
}

.feature-label {
  font-size: 0.70rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--color-body-text);
  margin-bottom: 0;
  transition: var(--transition-standard);
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.9);
}

.feature-item:hover .feature-label {
  color: var(--color-maroon);
}

/* ==========================================================================
   LOGIN CARD
   ========================================================================== */
.login-column {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px;
}

.login-card-wrapper {
  width: 100%;
  max-width: 370px;
}

.login-card {
  /* border: 4px solid var(--color-gold-border); */
  border: 4px solid #fdc652;
  border-radius: 16px;
  overflow: hidden;
  background-color: #ffffff;
  background: linear-gradient( 135deg, var(--color-maroon) 0%, var(--color-maroon-dark) 100% );
  box-shadow:
    0 12px 35px rgba(80, 15, 20, 0.22),
    0 2px 8px rgba(0, 0, 0, 0.08);
  transition: var(--transition-standard);
}

.login-card:hover {
  box-shadow:
    0 16px 42px rgba(80, 15, 20, 0.28),
    0 4px 12px rgba(0, 0, 0, 0.1);
}

.login-card-header {
  background: linear-gradient(
    135deg,
    var(--color-maroon) 0%,
    var(--color-maroon-dark) 100%
  );
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 1.5px solid rgba(200, 150, 62, 0.3);
}

.header-badge-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: #ffffff;
  flex-shrink: 0;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
}

.card-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.15;
  margin-bottom: 2px;
  letter-spacing: 0.3px;
}

.card-subtitle {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 400;
  letter-spacing: 0.2px;
}

.login-card-body {
  padding: 24px 24px 20px 24px;
  background: #ffffff;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}
@keyframes shake {
      0%, 100% { transform: translateX(0); }
      20%, 60% { transform: translateX(-10px); }
      40%, 80% { transform: translateX(10px); }
    }

    /* Class applied via JavaScript */
    .shake-animation {
      animation: shake 0.4s ease-in-out;
    }

/* Custom Inputs */
.custom-input-group {
  border: 1.5px solid #dcd7d0;
  border-radius: 10px;
  overflow: hidden;
  background-color: #faf8f5;
  transition: var(--transition-standard);
}

.custom-input-group:focus-within {
  border-color: var(--color-maroon);
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(123, 12, 22, 0.12);
}

.custom-input-group .input-group-text {
  background-color: transparent;
  border: none;
  color: var(--color-maroon);
  font-size: 1.05rem;
  padding-left: 14px;
  padding-right: 10px;
}

.custom-input {
  border: none;
  background-color: transparent;
  padding: 12px 10px 12px 4px;
  font-size: 0.88rem;
  color: #333333;
  font-weight: 500;
}

.custom-input:focus {
  outline: none;
  box-shadow: none;
  background-color: transparent;
}

.custom-input::placeholder {
  color: #8c827a;
  font-weight: 400;
}

/* Eye Toggle Button */
.btn-eye-toggle {
  background: transparent;
  border: none;
  color: #7a7067;
  font-size: 1.05rem;
  padding: 0 14px;
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: var(--transition-standard);
}

.btn-eye-toggle:hover {
  color: var(--color-maroon);
}

/* Checkbox & Forgot Link */
.options-row {
  font-size: 0.84rem;
}

.custom-checkbox-wrap .form-check-label {
  color: #4a3e3f;
  font-weight: 500;
  cursor: pointer;
  user-select: none;
}

.custom-checkbox {
  width: 17px;
  height: 17px;
  border: 1.5px solid #a89c92;
  border-radius: 4px;
  cursor: pointer;
  margin-top: 2px;
}

.custom-checkbox:checked {
  background-color: var(--color-maroon);
  border-color: var(--color-maroon);
}

.custom-checkbox:focus {
  box-shadow: 0 0 0 2px rgba(123, 12, 22, 0.2);
}

.forgot-password-link {
  color: var(--color-maroon);
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition-standard);
}

.forgot-password-link:hover {
  color: var(--color-maroon-dark);
  text-decoration: underline;
}

/* Login Button */
.btn-login {
  background: linear-gradient(
    135deg,
    var(--color-maroon) 0%,
    var(--color-maroon-dark) 100%
  );
  color: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 12px 20px;
  font-size: 1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(123, 12, 22, 0.35);
  transition: var(--transition-standard);
}

.btn-login:hover {
  background: linear-gradient(
    135deg,
    var(--color-maroon-light) 0%,
    var(--color-maroon) 100%
  );
  color: #ffffff;
  transform: translateY(-1.5px);
  box-shadow: 0 6px 16px rgba(123, 12, 22, 0.45);
}

.btn-login:active {
  transform: translateY(0);
}

.demo-fill-link {
  font-size: 0.8rem;
  color: #8c7355;
  text-decoration: none;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 20px;
  background: #fdf5ea;
  border: 1px dashed #d5b995;
  transition: var(--transition-standard);
  display: inline-block;
}

.demo-fill-link:hover {
  color: var(--color-maroon);
  border-color: var(--color-maroon);
  background: #faecea;
}

/* Shake Animation on validation failure */
@keyframes shakeAnimation {
  0%,
  100% {
    transform: translateX(0);
  }
  20%,
  60% {
    transform: translateX(-6px);
  }
  40%,
  80% {
    transform: translateX(6px);
  }
}

.shake {
  animation: shakeAnimation 0.4s ease-in-out;
}

/* ==========================================================================
   FOOTER SECTION
   ========================================================================== */
.site-footer {
  position: relative;
  width: 100%;
  top: 68px;
}

.footer-sketch-container {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding-right: 30px;
  margin-bottom: 2px;
}

.footer-sketch-img {
  height: 48px;
  width: auto;
  object-fit: contain;
  opacity: 0.95;
}

.footer-dept-line {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-top: -6px;
  margin-bottom: 6px;
  width: 100%;
  max-width: 440px;
}

.dept-rule-left,
.dept-rule-right {
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, transparent, #7b0c16);
}

.dept-rule-right {
  background: linear-gradient(90deg, #7b0c16, transparent);
}

.dept-rule-text {
  font-family: var(--font-tagline);
  font-style: italic;
  font-size: 11px;
  font-weight: 600;
  color: #4a181b;
  padding: 0 8px;
  white-space: nowrap;
}

.footer-mandala-ribbon {
  position: relative;
  width: 100%;
  height: 48px;
  background-color: var(--color-maroon);
  overflow: hidden;
}

.ribbon-gold-trim {
  height: 3px;
  background: linear-gradient(
    90deg,
    #c8963e 0%,
    #ecd599 35%,
    #dfa745 70%,
    #c8963e 100%
  );
  width: 100%;
}

.mandala-pattern-bg {
  width: 100%;
  height: 45px;
  background-image: url("../images/footer_mandala.png");
  background-repeat: repeat-x;
  background-position: center bottom;
  background-size: auto 100%;
}

/* ==========================================================================
   MODALS & POPUPS
   ========================================================================== */
.custom-modal {
  border-radius: 16px;
  border: 2px solid var(--color-gold-border);
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
}

.modal-maroon-header {
  background: linear-gradient(
    135deg,
    var(--color-maroon) 0%,
    var(--color-maroon-dark) 100%
  );
  color: #ffffff;
  border-bottom: 1px solid var(--color-gold-light);
}

.btn-maroon {
  background: linear-gradient(
    135deg,
    var(--color-maroon) 0%,
    var(--color-maroon-dark) 100%
  );
  color: #ffffff;
  border: none;
  padding: 8px 20px;
  border-radius: 8px;
  font-weight: 600;
  transition: var(--transition-standard);
}

.btn-maroon:hover {
  background: linear-gradient(
    135deg,
    var(--color-maroon-light) 0%,
    var(--color-maroon) 100%
  );
  color: #ffffff;
}

.success-icon-wrap {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: #eafaf1;
  color: #198754;
  font-size: 2.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.text-maroon {
  color: var(--color-maroon) !important;
}

/* ==========================================================================
   VIEW CONTROLLER BAR (Bottom-Left Helper)
   ========================================================================== */
.view-mode-bar {
  position: fixed;
  bottom: 12px;
  left: 14px;
  z-index: 9999;
}

.btn-view-mode {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border: 1.5px solid var(--color-gold-border);
  color: var(--color-maroon);
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 50px;
  padding: 6px 16px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  transition: var(--transition-standard);
}

.btn-view-mode:hover {
  background: #ffffff;
  border-color: var(--color-gold);
  color: var(--color-maroon-dark);
}

/* Mockup Overlay for Pixel Comparison */
.mockup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 5000;
  pointer-events: none;
  opacity: 0.5;
}

.mockup-overlay img {
  width: 100%;
  height: 100%;
  object-fit: fill;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */

/* Large screens (>= 1400px) */
@media (min-width: 1400px) {
  .header-container {
    padding: 10px 48px;
  }
  .hero-container {
    padding-left: 48px;
    padding-right: 48px;
  }
  .dept-title {
    font-size: 1.55rem;
  }
  .ivrs-title {
    font-size: 1.45rem;
  }
  .hero-tagline {
    font-size: 1.95rem;
  }
  .features-grid {
    max-width: 580px;
  }
  .feature-icon-circle {
    width: 56px;
    height: 56px;
    font-size: 1.45rem;
  }
  .login-card-wrapper {
    max-width: 380px;
  }
}

/* Tablets Landscape & Medium Desktops (992px to 1199px) */
@media (max-width: 1199.98px) {
  .dept-title {
    font-size: 1.25rem;
  }
  .govt-subtitle {
    font-size: 0.88rem;
  }
  .ivrs-title {
    font-size: 1.15rem;
  }
  .ivrs-subtitle {
    font-size: 0.88rem;
  }
  .hero-tagline {
    font-size: 1.5rem;
  }
  .hero-pill-badge {
    font-size: 0.88rem;
    padding: 5px 20px;
  }
  .features-grid {
    max-width: 480px;
  }
  .feature-icon-circle {
    width: 48px;
    height: 48px;
    font-size: 1.25rem;
  }
}

/* Tablets Portrait (768px to 991.98px) */
@media (max-width: 991.98px) {
  .hero-section {
    background-position: left bottom;
    padding-top: 16px;
  }
  .header-divider {
    display: none;
  }
  .center-content-column {
    margin-bottom: 24px;
  }
  .features-grid {
    max-width: 500px;
  }
  .login-card-wrapper {
    max-width: 400px;
  }
  .footer-sketch-container {
    align-items: center;
    padding-right: 0;
  }
  .footer-dept-line {
    justify-content: center;
  }
}

/* Mobile Devices (<= 767.98px) */
@media (max-width: 767.98px) {
  .header-container {
    padding: 10px 14px;
  }
  .govt-emblem {
    height: 52px;
  }
  .dept-title {
    font-size: 1.15rem;
  }
  .govt-subtitle {
    font-size: 0.82rem;
  }
  .ivrs-badge-icon {
    width: 40px;
    height: 40px;
    font-size: 1.05rem;
  }
  .ivrs-title {
    font-size: 1.05rem;
  }
  .ivrs-subtitle {
    font-size: 0.82rem;
  }
  .hero-tagline {
    font-size: 1.35rem;
  }
  .tagline-sep {
    margin: 0 4px;
  }
  .hero-pill-badge {
    font-size: 0.82rem;
    padding: 5px 16px;
    white-space: normal;
  }
  .feature-icon-circle {
    width: 44px;
    height: 44px;
    font-size: 1.15rem;
  }
  .feature-label {
    font-size: 0.7rem;
  }
  .login-card-header {
    padding: 14px 16px;
  }
  .header-badge-circle {
    width: 40px;
    height: 40px;
    font-size: 1.15rem;
  }
  .card-title {
    font-size: 1.15rem;
  }
  .card-subtitle {
    font-size: 0.72rem;
  }
  .login-card-body {
    padding: 18px 16px;
  }
  .custom-input {
    font-size: 0.84rem;
    padding: 10px 6px 10px 2px;
  }
  .btn-login {
    padding: 10px 16px;
    font-size: 0.95rem;
  }
  .footer-sketch-container {
    align-items: center;
    padding-right: 0;
  }
  .footer-sketch-img {
    height: 38px;
  }
  .dept-rule-text {
    font-size: 0.72rem;
  }
  .view-mode-bar {
    bottom: 8px;
    left: 8px;
  }
  .btn-view-mode {
    font-size: 0.72rem;
    padding: 4px 12px;
  }
}

/* Small mobile (<= 380px) */
@media (max-width: 380px) {
  .feature-label {
    font-size: 0.65rem;
  }
  .feature-icon-circle {
    width: 40px;
    height: 40px;
    font-size: 1.05rem;
  }
  .hero-tagline {
    font-size: 1.18rem;
  }
}
.border-right {
  position: relative;
}
.border-right::before {
  content: "";
  position: absolute;
  right: 0;
  width: 5px;
  height: 60px;
  top: 15px;
  border-right: 1px solid #780613;
}
