@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  --primary: #0284c7;
  --primary-hover: #0369a1;
  --primary-dark: #075985;
  --secondary-teal: #0d9488;
  --accent-emerald: #10b981;
  --bg-dark-1: #091e3a;
  --bg-dark-2: #0f3460;
  --bg-dark-3: #082d44;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --border-light: #e2e8f0;
  --card-bg: #ffffff;
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 40px rgba(15, 23, 42, 0.12);
  --shadow-glow: 0 10px 25px rgba(2, 132, 199, 0.35);
}

/* Reset & Base overrides for Login Page */
body.sasuke-login-body {
  font-family: var(--font-main) !important;
  background: #f1f5f9 !important;
  color: var(--text-primary);
  margin: 0;
  padding: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background-image: none !important;
}

.sasuke-login-body * {
  box-sizing: border-box;
}

/* Outer Wrapper: Split Screen 2 Columns */
.sasuke-auth-wrapper {
  display: flex;
  min-height: 100vh;
  width: 100%;
  position: relative;
}

/* ========================================================
   LEFT COLUMN: BRANDING & IDENTITY SIDE
   ======================================================== */
.sasuke-brand-side {
  flex: 0 0 50%;
  max-width: 50%;
  background: linear-gradient(145deg, #06192e 0%, #0c2b4d 35%, #093b59 70%, #064e43 100%);
  color: #ffffff;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 48px 56px;
  overflow: hidden;
  z-index: 1;
}

/* Ambient glow background effects */
.sasuke-brand-side::before {
  content: '';
  position: absolute;
  top: -20%;
  left: -20%;
  width: 70%;
  height: 70%;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.25) 0%, rgba(14, 165, 233, 0) 70%);
  border-radius: 50%;
  filter: blur(60px);
  z-index: -1;
  pointer-events: none;
  animation: pulseGlow 12s ease-in-out infinite alternate;
}

.sasuke-brand-side::after {
  content: '';
  position: absolute;
  bottom: -15%;
  right: -15%;
  width: 65%;
  height: 65%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.2) 0%, rgba(16, 185, 129, 0) 70%);
  border-radius: 50%;
  filter: blur(60px);
  z-index: -1;
  pointer-events: none;
  animation: pulseGlow 14s ease-in-out infinite alternate-reverse;
}

@keyframes pulseGlow {
  0% { transform: scale(0.9) translate(0, 0); opacity: 0.7; }
  100% { transform: scale(1.15) translate(20px, 20px); opacity: 1; }
}

/* Background Subtle Mesh Grid Lines */
.brand-grid-pattern {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  z-index: -1;
  opacity: 0.7;
}

/* Top Institutional Header (Logos & Official Title) */
.brand-top-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 24px;
}

.official-logos-group {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 30px;
  padding: 8px 16px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.logo-dki {
  height: 38px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.logo-separator {
  width: 1px;
  height: 24px;
  background: rgba(255, 255, 255, 0.25);
}

.logo-pkc {
  height: 40px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.brand-official-text {
  display: flex;
  flex-direction: column;
}

.official-kemenkes-title {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: #38bdf8;
  text-transform: uppercase;
  margin: 0;
}

.official-instansi-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  line-height: 1.25;
}

.official-instansi-sub {
  font-size: 0.78rem;
  color: #cbd5e1;
  margin: 0;
}

/* Main Brand Center Content */
.brand-main-hero {
  margin: auto 0;
  padding: 24px 0;
}

.app-badge-row {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 24px;
}

.app-icon-bubble {
  width: 76px;
  height: 76px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25), inset 0 1px 1px rgba(255, 255, 255, 0.4);
  transition: transform 0.3s ease;
}

.app-icon-bubble:hover {
  transform: translateY(-3px) scale(1.03);
}

.app-icon-bubble img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.app-hero-title-group h1 {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 1.1;
  background: linear-gradient(135deg, #ffffff 0%, #e0f2fe 60%, #bae6fd 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.app-version-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  padding: 3px 10px;
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #6ee7b7;
  font-size: 0.76rem;
  font-weight: 600;
  border-radius: 20px;
}

.app-version-pill .pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: dotBlink 2s infinite;
}

@keyframes dotBlink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.app-hero-tagline {
  font-size: 1.2rem;
  font-weight: 600;
  color: #f8fafc;
  margin: 0 0 10px 0;
  line-height: 1.4;
}

.app-hero-desc {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #cbd5e1;
  max-width: 520px;
  margin-bottom: 32px;
}

/* Feature Highlight Cards */
.brand-feature-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 520px;
}

.feature-pill-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  transition: all 0.25s ease;
}

.feature-pill-card:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateX(6px);
  border-color: rgba(56, 189, 248, 0.4);
}

.feature-pill-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.3) 0%, rgba(16, 185, 129, 0.3) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #38bdf8;
  font-size: 1rem;
  flex-shrink: 0;
}

.feature-pill-info h4 {
  font-size: 0.88rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 2px 0;
}

.feature-pill-info p {
  font-size: 0.8rem;
  color: #94a3b8;
  margin: 0;
  line-height: 1.35;
}

/* Bottom Footer in Brand Column */
.brand-footer {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #94a3b8;
}

.brand-footer a {
  color: #38bdf8;
  text-decoration: none;
}

/* ========================================================
   RIGHT COLUMN: LOGIN FORM PANEL
   ======================================================== */
.sasuke-form-side {
  flex: 0 0 50%;
  max-width: 50%;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 48px 40px;
  position: relative;
  overflow-y: auto;
}

/* Subtle modern background glow on form side */
.sasuke-form-side::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(2, 132, 199, 0.05) 0%, rgba(2, 132, 199, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
}

/* Form Container Card */
.auth-form-card {
  width: 100%;
  max-width: 440px;
  margin: auto;
  position: relative;
  z-index: 2;
}

/* Mobile-only Branding Header (hidden on desktop) */
.mobile-brand-header {
  display: none;
  text-align: center;
  margin-bottom: 28px;
}

.mobile-logos-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 12px;
}

.mobile-logos-row img {
  height: 38px;
  width: auto;
  object-fit: contain;
}

.mobile-app-name {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0;
}

.mobile-app-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin: 0;
}

/* Form Header */
.auth-form-header {
  margin-bottom: 30px;
}

.auth-form-header .badge-portal {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 20px;
  background: #e0f2fe;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.auth-form-header h2 {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin: 0 0 8px 0;
  line-height: 1.2;
}

.auth-form-header p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.5;
}

/* Alert Message Box */
#msg_login {
  border-radius: var(--radius-md) !important;
  padding: 14px 16px !important;
  font-size: 0.88rem !important;
  font-weight: 500 !important;
  margin-bottom: 22px !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  border: none !important;
  box-shadow: var(--shadow-sm);
  animation: slideInDown 0.3s ease;
}

#msg_login.d-none {
  display: none !important;
}

#msg_login.alert-danger {
  background-color: #fef2f2 !important;
  color: #b91c1c !important;
  border-left: 4px solid #ef4444 !important;
}

#msg_login.alert-success {
  background-color: #f0fdf4 !important;
  color: #15803d !important;
  border-left: 4px solid #22c55e !important;
}

@keyframes slideInDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Modern Input Groups */
.form-input-block {
  margin-bottom: 20px;
}

.form-input-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.input-icon-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.input-icon-wrapper .input-prefix-icon {
  position: absolute;
  left: 16px;
  color: var(--text-muted);
  font-size: 1rem;
  pointer-events: none;
  transition: color 0.2s ease;
  z-index: 2;
}

.modern-input {
  width: 100%;
  height: 50px;
  padding: 12px 16px 12px 46px;
  font-family: var(--font-main);
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--text-primary);
  background-color: #f8fafc;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  outline: none;
  transition: all 0.2s ease;
}

.modern-input::placeholder {
  color: #94a3b8;
  font-weight: 400;
}

.modern-input:focus {
  background-color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.12);
}

.input-icon-wrapper:focus-within .input-prefix-icon {
  color: var(--primary);
}

/* Password Field Wrapper & Show/Hide Button */
.wrapper {
  position: relative;
  width: 100%;
  height: auto;
}

.wrapper .modern-input {
  padding-right: 48px;
}

.show-btn-password {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
  background: transparent;
  border: none;
  transition: all 0.2s ease;
  z-index: 5;
}

.show-btn-password:hover {
  color: var(--primary);
  background: rgba(2, 132, 199, 0.08);
}

.show-btn-password i {
  font-size: 1.05rem;
}

/* Actions Row: Forgot Password */
.form-actions-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-bottom: 24px;
}

.forgot-password-link {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.forgot-password-link:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

/* Submit Button */
.btn-submit-modern {
  width: 100%;
  height: 52px;
  border: none;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  font-family: var(--font-main);
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

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

.btn-submit-modern:hover {
  background: linear-gradient(135deg, #0369a1 0%, #075985 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.45);
}

.btn-submit-modern:hover::before {
  left: 100%;
}

.btn-submit-modern:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.3);
}

/* Form Card Footer & Security Note */
.auth-security-notice {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
}

.auth-security-notice i {
  color: var(--accent-emerald);
}

.auth-page-copy {
  margin-top: 16px;
  font-size: 0.75rem;
  color: #94a3b8;
  text-align: center;
}

/* ========================================================
   RESPONSIVE MEDIA QUERIES
   ======================================================== */
@media (max-width: 1199.98px) {
  .sasuke-brand-side {
    padding: 40px 36px;
  }
  .app-hero-title-group h1 {
    font-size: 2.1rem;
  }
}

@media (max-width: 991.98px) {
  .sasuke-auth-wrapper {
    flex-direction: column;
    min-height: 100vh;
  }

  .sasuke-brand-side {
    flex: 0 0 auto;
    max-width: 100%;
    padding: 36px 28px;
  }

  .brand-feature-list,
  .brand-footer,
  .brand-grid-pattern {
    display: none;
  }

  .brand-main-hero {
    margin: 12px 0 0 0;
    padding: 0;
  }

  .app-hero-desc {
    margin-bottom: 0;
    font-size: 0.88rem;
  }

  .app-badge-row {
    margin-bottom: 14px;
  }

  .app-hero-title-group h1 {
    font-size: 1.85rem;
  }

  .app-hero-tagline {
    font-size: 1rem;
    margin-bottom: 6px;
  }

  .sasuke-form-side {
    flex: 1 0 auto;
    max-width: 100%;
    padding: 36px 24px 48px;
  }

  .auth-form-card {
    max-width: 420px;
  }
}

@media (max-width: 575.98px) {
  .sasuke-brand-side {
    padding: 24px 20px;
  }

  .official-logos-group {
    padding: 6px 12px;
  }

  .logo-dki {
    height: 30px;
  }

  .logo-pkc {
    height: 32px;
  }

  .app-icon-bubble {
    width: 60px;
    height: 60px;
    border-radius: 16px;
  }

  .app-icon-bubble img {
    width: 40px;
    height: 40px;
  }

  .app-hero-title-group h1 {
    font-size: 1.6rem;
  }

  .sasuke-form-side {
    padding: 28px 20px 40px;
  }

  .auth-form-header h2 {
    font-size: 1.5rem;
  }
}
