/* Vibrant Light Theme Login Styles */
:root {
  --navy: #12355B;
  --navy-2: #0C2743;
  --cyan: #29B7D3;
  --cyan-bright: #00D4FC;
  --teal: #1B7A94;
  --paper: #F5F8FA;
  --card: #FFFFFF;
  --ink: #1E2A36;
  --mut: #64748B;
  --line: #E2E8F0;
  --r: 20px;
  --sh-card: 0 25px 60px -15px rgba(18, 53, 91, 0.16), 0 10px 25px -10px rgba(41, 183, 211, 0.12);
}

html,
body.login-page-body {
  height: 100vh;
  max-height: 100vh;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

body.login-page-body {
  font-family: 'Inter', sans-serif;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: radial-gradient(circle at 50% 50%, #EBF4FC 0%, #DCE8F5 55%, #D4E3F3 100%);
  color: var(--ink);
  position: relative;
}

/* Animated Vibrant Orbs */
.bg-grid-pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(41, 183, 211, 0.18) 1.2px, transparent 1.2px);
  background-size: 30px 30px;
  pointer-events: none;
  z-index: 1;
}

.bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(65px);
  pointer-events: none;
  z-index: 1;
  opacity: 0.7;
  animation: floatOrb 10s infinite alternate ease-in-out;
}

.bg-orb-1 {
  width: 420px;
  height: 420px;
  background: rgba(41, 183, 211, 0.35);
  top: -80px;
  left: -80px;
}

.bg-orb-2 {
  width: 480px;
  height: 480px;
  background: rgba(18, 53, 91, 0.22);
  bottom: -100px;
  right: -80px;
  animation-delay: -5s;
}

@keyframes floatOrb {
  0% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(40px, 45px) scale(1.08);
  }

  100% {
    transform: translate(-30px, 20px) scale(0.95);
  }
}

.login-container-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
}

/* Sleek Glass Card Container */
.login-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--r);
  box-shadow: var(--sh-card);
  border: 1px solid rgba(255, 255, 255, 0.9);
  width: 100%;
  max-width: 470px;
  overflow: hidden;
  animation: slideUpScale 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  position: relative;
}

@keyframes slideUpScale {
  0% {
    opacity: 0;
    transform: translateY(30px) scale(0.96);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Rich Header with Vibrant Gradient Accents */
.login-card-header {
  background: linear-gradient(135deg, var(--navy-2) 0%, var(--navy) 100%);
  color: #ffffff;
  padding: 26px 24px 22px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.login-card-header::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(41, 183, 211, 0.4) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.brand-icon-wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  margin-bottom: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  animation: pulseGlow 3s infinite alternate;
}

@keyframes pulseGlow {
  0% {
    box-shadow: 0 0 0 0 rgba(41, 183, 211, 0.4);
  }

  100% {
    box-shadow: 0 0 0 10px rgba(41, 183, 211, 0);
  }
}

.brand-icon-wrapper .logo-e {
  width: 40px;
  height: 40px;
  background: url('../img/logo-icon.png') no-repeat center center / contain;
  position: relative;
}

.login-card-header h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 25px;
  font-weight: 700;
  margin: 0 0 4px 0;
  color: #ffffff;
  letter-spacing: 0.02em;
}

.login-card-header h3 span {
  color: var(--cyan-bright);
}

.login-card-header p {
  font-size: 14px;
  color: #B9C9DA;
  margin: 0;
}

/* Card Body & Input Styling */
.login-card-body {
  padding: 24px 30px 30px;
}

.login-card-body .form-group {
  margin-bottom: 18px;
  position: relative;
}

.login-card-body label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 7px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.login-input-group {
  position: relative;
  display: flex;
  align-items: center;
}

.login-input-group input {
  font-family: 'Inter', sans-serif;
  font-size: 14.5px;
  padding: 13px 42px 13px 16px;
  border: 2px solid #E2E8F0;
  border-radius: 12px;
  background: #ffffff;
  width: 100%;
  outline: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.login-input-group input:focus {
  border-color: var(--cyan);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(41, 183, 211, 0.2), 0 4px 12px rgba(41, 183, 211, 0.1);
  transform: translateY(-1px);
}

.login-input-group input:disabled,
.login-input-group input.disabled-input {
  background: #F1F5F9;
  color: #64748B;
  border-color: #CBD5E1;
  cursor: not-allowed;
  opacity: 0.85;
}

.login-input-group .input-icon,
.login-input-group .toggle-password-btn {
  position: absolute;
  right: 14px;
  color: #94A3B8;
  font-size: 15px;
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  outline: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.25s ease, transform 0.25s ease;
}

.login-input-group .toggle-password-btn:hover {
  color: var(--teal);
}

.login-input-group input:focus+.input-icon,
.login-input-group input:focus~.toggle-password-btn {
  color: var(--cyan);
}

/* Status & Confirmation Icon Boxes */
.status-icon-box {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(41, 183, 211, 0.12);
  border: 1.5px solid rgba(41, 183, 211, 0.3);
  color: var(--cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 6px auto 18px;
  font-size: 30px;
  box-shadow: 0 8px 24px rgba(41, 183, 211, 0.15);
  transition: transform 0.3s ease;
}

.status-icon-box:hover {
  transform: scale(1.06);
}

.status-message-text {
  color: var(--mut);
  line-height: 1.6;
  margin-bottom: 24px;
  text-align: center;
}

/* Vibrant Action Button */
.login-card-body .btn-login {
  position: relative;
  background: linear-gradient(135deg, var(--cyan) 0%, var(--teal) 100%);
  color: #ffffff;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 15px;
  padding: 15px 20px;
  border-radius: 12px;
  border: none;
  width: 100%;
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(41, 183, 211, 0.4);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.login-card-body .btn-login::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transition: left 0.6s ease;
}

.login-card-body .btn-login:hover {
  box-shadow: 0 12px 28px rgba(41, 183, 211, 0.55);
  transform: translateY(-2px);
}

.login-card-body .btn-login:hover::before {
  left: 100%;
}

.login-card-body .btn-login:hover i {
  transform: translateX(4px);
}

.login-card-body .btn-login i {
  transition: transform 0.25s ease;
}

.login-card-body .btn-login:active {
  transform: translateY(0);
  box-shadow: 0 4px 14px rgba(41, 183, 211, 0.3);
}

/* Card Footer */
.login-card-footer {
  text-align: center;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.login-card-footer a {
  color: var(--teal);
  font-weight: 600;
  font-size: 13.5px;
  text-decoration: none;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.login-card-footer a:hover {
  color: var(--navy);
  transform: translateY(-1px);
}

.login-footer-text {
  text-align: center;
  padding-top: 20px;
  font-size: 12.5px;
  color: #64748B;
  font-weight: 500;
  position: relative;
  z-index: 2;
}

/* Standard Media Queries */

/* Desktops / Small Laptops (max-width: 1024px) */
@media screen and (max-width: 1024px) {
  .login-card {
    max-width: 440px;
  }

  html,
  body {
    overflow-x: hidden;
  }
}

/* iPads (portrait) - 768px to 991px */
@media screen and (max-width: 991px) {
  .login-card {
    max-width: 420px;
  }

  .login-card-header {
    padding: 24px 22px 20px;
  }

  .login-card-body {
    padding: 22px 24px 26px;
  }
}

/* Smartphones (landscape) 481px to 767px */
@media screen and (max-width: 767px) {

  html,
  body.login-page-body {
    height: auto;
    min-height: 100vh;
    max-height: none;
    overflow-y: auto;
    overflow-x: hidden;
  }

  body.login-page-body {
    padding: 24px 16px;
    justify-content: flex-start;
  }

  .login-container-wrapper {
    margin: auto 0;
    width: 100%;
  }

  .login-card {
    max-width: 90%;
    border-radius: 18px;
  }

  .login-card-header {
    padding: 22px 20px 18px;
  }

  .login-card-header h3 {
    font-size: 22px;
  }

  .login-card-body {
    padding: 20px 22px 24px;
  }
}

/* Smartphones (portrait) < 480px */
@media screen and (max-width: 480px) {

  html,
  body.login-page-body {
    height: auto;
    min-height: 100vh;
    max-height: none;
    overflow-y: hidden;
    overflow-x: hidden;
  }

  body.login-page-body {
    padding: 20px 14px;
    justify-content: flex-start;
  }

  .login-container-wrapper {
    margin: auto 0;
    width: 100%;
  }

  .login-card {
    max-width: 90%;
    border-radius: 16px;
  }

  .login-card-header {
    padding: 20px 16px 16px;
  }

  .login-card-header h3 {
    font-size: 20px;
  }

  .login-card-header p {
    font-size: 12.5px;
  }

  .brand-icon-wrapper {
    width: 44px;
    height: 44px;
    margin-bottom: 6px;
  }

  .brand-icon-wrapper .logo-e {
    width: 26px;
    height: 26px;
  }

  .login-card-body {
    padding: 16px 18px 20px;
  }

  .login-card-body .form-group {
    margin-bottom: 14px;
  }

  .login-input-group input {
    font-size: 13.5px;
    padding: 11px 38px 11px 14px;
    border-radius: 10px;
  }

  .login-card-body .btn-login {
    font-size: 14px;
    padding: 12.5px 16px;
    border-radius: 10px;
  }

  .status-icon-box {
    width: 56px;
    height: 56px;
    font-size: 22px;
    margin-bottom: 12px;
  }

  .status-message-text {
    font-size: 13px;
    margin-bottom: 16px;
  }

  .login-footer-text {
    padding-top: 14px;
    font-size: 11.5px;
  }
}