.app-shell {
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px 18px;
}

.login-card {
  background: linear-gradient(140deg, #3b79f340 7%, #ffff 51%, #e9f7ff 90%);
  box-shadow: 0 10px 26px rgba(32, 56, 117, 0.08);
  padding: 28px 22px;
  padding-bottom: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.login-card > .container,
.login-card > div.container {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 16px;
  margin: 0 auto;
}

.login-form-wrap {
  padding-bottom: 24px;
}

.login-card .site-footer {
  margin-top: auto;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  background: transparent;
}

.hero-illus {
  display: block;
  margin: 6px auto 10px;
  max-width: 180px;
  width: 100%;
  height: auto;
}

.title {
  font-weight: 700;
  font-size: 20px;
  text-align: center;
  color: #3b4556;
  margin-top: 6px;
  margin-bottom: 18px;
}

.form-control {
  padding: 12px 16px;
  font-size: 14px;
  border-radius: 12px;
  border: 1px solid #dde2e9;
  background: #f8fafc;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
  border-color: #3b79f3;
  box-shadow: 0 0 0 3px rgba(59, 121, 243, 0.15);
  background: #fff;
}

.field-pass {
  position: relative;
}

.toggle-eye {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #6b7280;
  cursor: pointer;
  padding: 4px;
  z-index: 2;
}

.toggle-eye:hover {
  color: #3b79f3;
}

.forgot a {
  color: #2c6bed;
  text-decoration: none;
  font-size: 0.95rem;
}
.forgot a:hover {
  text-decoration: underline;
}

.btn-brand {
  background: linear-gradient(135deg, #3b79f3 0%, #2c6bed 100%);
  border: none;
  color: #fff;
  font-weight: 600;
  padding: 14px 24px;
  border-radius: 12px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-brand:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 121, 243, 0.35);
  color: #fff;
}

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

.invalid-msg {
  color: #dc3545;
  font-size: 12px;
  margin-top: 6px;
  display: none;
}

.has-error .invalid-msg,
.is-invalid ~ .invalid-msg {
  display: block;
}

.is-invalid {
  border-color: #dc3545 !important;
}

/* Responsive */
@media (max-width: 576px) {
  .login-card {
    padding: 20px 16px;
  }
  
  .hero-illus {
    max-width: 140px;
  }
  
  .title {
    font-size: 18px;
  }
  
  .btn-brand {
    padding: 12px 20px;
  }
}

@media (min-width: 768px) {
  .login-card {
    padding: 40px;
  }
  
  .hero-illus {
    max-width: 220px;
  }
  
  .title {
    font-size: 24px;
  }
}

/* OTP */
.otp-group {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  justify-items: center;
  margin-top: 8px;
}
.otp-input {
  width: 56px;
  height: 56px;
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  color: #3b4556;
  background: #eef2f7;
  border: 1px solid #d0d5dd;
  border-radius: 12px;
  outline: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.otp-input:focus {
  background: #e8f0ff;
  border-color: #2d7ef7;
  box-shadow: 0 0 0 2px rgba(45, 126, 247, 0.35),
    0 4px 12px rgba(45, 126, 247, 0.12);
}

/* OTP responsive */
@media (max-width: 400px) {
  .otp-group {
    gap: 8px;
  }
  .otp-input {
    width: 48px;
    height: 48px;
    font-size: 18px;
    border-radius: 10px;
  }
}
