/**
 * MA-TEMA IZIN - Kabupaten Nias
 * Auth & Login Styling (Figma Pixel-Precise)
 */

.auth-container {
  min-height: 100vh;
  display: flex;
  background-color: #ebf3fc;
  overflow-x: hidden;
}

/* ========================================================
   LEFT SIDE - BRAND HERO BANNER
   ======================================================== */
.auth-hero {
  flex: 1.1;
  background: linear-gradient(145deg, #0d275d 0%, #081a40 60%, #051330 100%);
  position: relative;
  overflow: hidden;
  padding: 56px 64px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #ffffff;
  z-index: 1;
}

/* Decorative background circles */
.hero-circle-1 {
  position: absolute;
  top: -80px;
  right: -80px;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.35) 0%, rgba(37, 99, 235, 0.05) 70%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

.hero-circle-2 {
  position: absolute;
  top: 15%;
  right: 8%;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: rgba(30, 64, 175, 0.25);
  pointer-events: none;
  z-index: 0;
}

.hero-circle-3 {
  position: absolute;
  bottom: -100px;
  left: -50px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.2) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* Government Header */
.hero-header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 16px;
}

.hero-header img.gov-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.3));
}

.hero-header .gov-title {
  display: flex;
  flex-direction: column;
}

.hero-header .gov-title .gov-sub {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #94a3b8;
}

.hero-header .gov-title .gov-main {
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #ffffff;
  line-height: 1.2;
}

/* Main Hero Copy */
.hero-body {
  position: relative;
  z-index: 2;
  margin: 40px 0;
  max-width: 580px;
}

.hero-accent-bar {
  width: 42px;
  height: 4.5px;
  background-color: #3b82f6;
  border-radius: 4px;
  margin-bottom: 24px;
}

.hero-title {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.75px;
  color: #ffffff;
  margin-bottom: 18px;
}

.hero-desc {
  font-size: 1.05rem;
  line-height: 1.6;
  color: #bfdbfe;
  margin-bottom: 38px;
  font-weight: 400;
}

/* Feature Cards */
.hero-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.hero-feature-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: all 0.3s ease;
}

.hero-feature-card:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.25);
}

.feature-icon-box {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(59, 130, 246, 0.35);
  border: 1px solid rgba(147, 197, 253, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.feature-icon-box.circle {
  border-radius: 50%;
}

.feature-text h6 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 2px;
}

.feature-text p {
  font-size: 0.78rem;
  color: #93c5fd;
  margin: 0;
}

/* Bottom Brand Logo Badge */
.hero-footer {
  position: relative;
  z-index: 2;
  margin-top: 20px;
}

.brand-badge-box {
  background: #ffffff;
  border-radius: 12px;
  padding: 10px 20px;
  display: inline-flex;
  align-items: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.brand-badge-box img {
  height: 38px;
  width: auto;
}

/* ========================================================
   RIGHT SIDE - LOGIN CARD
   ======================================================== */
.auth-form-wrapper {
  flex: 0.9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  position: relative;
}

.auth-card {
  background: #ffffff;
  width: 100%;
  max-width: 480px;
  border-radius: 28px;
  padding: 46px 42px;
  box-shadow: 0 15px 35px -5px rgba(11, 36, 86, 0.08), 0 0 0 1px rgba(226, 232, 240, 0.6);
  position: relative;
}

.auth-card-header {
  margin-bottom: 30px;
}

.auth-title {
  font-size: 1.85rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.5px;
  margin-bottom: 6px;
}

.auth-subtitle {
  font-size: 0.98rem;
  color: #64748b;
  font-weight: 400;
}

/* Form Group & Inputs */
.auth-form-group {
  margin-bottom: 22px;
  position: relative;
}

.auth-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: #334155;
  margin-bottom: 8px;
  display: block;
}

.input-box-wrapper {
  position: relative;
}

.auth-input {
  width: 100%;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  padding: 13px 18px;
  font-size: 0.92rem;
  color: #1e293b;
  background-color: #ffffff;
  transition: all 0.2s ease;
}

.auth-input:focus {
  border-color: #2b4bff;
  box-shadow: 0 0 0 4px rgba(43, 75, 255, 0.12);
  outline: none;
}

.auth-input.is-invalid {
  border-color: #ef4444;
  background-color: #fffbfa;
}

.auth-input.is-invalid:focus {
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.12);
}

.auth-input::placeholder {
  color: #94a3b8;
  font-size: 0.88rem;
}

.password-toggle-btn {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: #64748b;
  font-size: 1.15rem;
  cursor: pointer;
  padding: 4px 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}

.password-toggle-btn:hover {
  color: #1e293b;
}

/* Input helper / validation feedback */
.input-feedback-note {
  font-size: 0.8rem;
  color: #dc2626;
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 5px;
  font-style: italic;
}

.input-feedback-note.is-hidden {
  display: none;
}

.password-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 6px;
}

.forgot-password-link {
  font-size: 0.82rem;
  color: #64748b;
  text-decoration: none;
  font-style: italic;
  transition: color 0.2s ease;
}

.forgot-password-link:hover {
  color: #2b4bff;
  text-decoration: underline;
}

/* Action Buttons */
.btn-auth-submit {
  width: 100%;
  background-color: #2b4bff;
  color: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 13px;
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(43, 75, 255, 0.35);
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
}

.btn-auth-submit:hover {
  background-color: #1a38df;
  box-shadow: 0 6px 20px rgba(43, 75, 255, 0.45);
  transform: translateY(-1px);
}

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

/* Or Divider */
.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 18px 0;
  color: #94a3b8;
  font-size: 0.85rem;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid #e2e8f0;
}

.auth-divider span {
  padding: 0 14px;
}

/* Lacak ID Button */
.btn-lacak-id {
  width: 100%;
  background-color: transparent;
  color: #334155;
  border: 1.5px solid #cbd5e1;
  border-radius: 50px;
  padding: 10px 20px;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-lacak-id:hover {
  background-color: #f8fafc;
  border-color: #94a3b8;
  color: #0f172a;
}

.btn-lacak-id i {
  font-size: 1rem;
  color: #2b4bff;
}

/* Card Help Link */
.auth-help-text {
  text-align: center;
  font-size: 0.84rem;
  color: #64748b;
  margin-top: 22px;
}

.auth-help-text a {
  color: #2b4bff;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.auth-help-text a:hover {
  text-decoration: underline;
  color: #1a38df;
}

/* Copyright Sub-Footer */
.auth-copyright {
  margin-top: 24px;
  font-size: 0.78rem;
  color: #64748b;
  text-align: center;
  max-width: 460px;
  line-height: 1.5;
}

/* Quick Role Switcher Bar (For Seamless Developer / Testing Demo) */
.dev-role-selector-bar {
  margin-top: 14px;
  text-align: center;
}

.dev-role-selector-bar button {
  font-size: 0.75rem;
  color: #475569;
  background: #f1f5f9;
  border: 1px dashed #cbd5e1;
  padding: 4px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.dev-role-selector-bar button:hover {
  background: #e2e8f0;
  color: #1e293b;
}

/* Responsive Breakpoints */
@media (max-width: 992px) {
  .auth-container {
    flex-direction: column;
  }
  .auth-hero {
    padding: 36px 20px;
    flex: none;
  }
  .hero-title {
    font-size: 1.95rem;
  }
  .hero-features {
    grid-template-columns: 1fr;
  }
  .auth-form-wrapper {
    padding: 24px 16px;
    flex: none;
    width: 100%;
  }
  .auth-card {
    padding: 30px 22px;
    border-radius: 20px;
    max-width: 100%;
  }
}

@media (max-width: 575.98px) {
  .auth-hero {
    padding: 24px 16px;
  }
  .hero-header {
    gap: 12px;
  }
  .hero-header img.gov-logo {
    width: 42px;
    height: 42px;
  }
  .hero-header .gov-title .gov-main {
    font-size: 1.25rem;
  }
  .hero-body {
    margin: 20px 0;
  }
  .hero-title {
    font-size: 1.55rem;
    margin-bottom: 12px;
  }
  .hero-desc {
    font-size: 0.9rem;
    margin-bottom: 20px;
  }
  .auth-card {
    padding: 24px 16px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  }
  .auth-title {
    font-size: 1.45rem;
  }
  .auth-subtitle {
    font-size: 0.85rem;
  }
  .btn-auth-submit {
    padding: 12px;
    font-size: 0.9rem;
  }
}
