/* ==========================================================================
   BIMA MOBILE DESIGN SYSTEM & STYLES
   ========================================================================== */

/* Design Tokens & Custom Variables */
:root {
  --color-navy: #0d2149;
  --color-navy-light: #1b3564;
  --color-sky-blue: #13b5ea;
  --color-purple: #1e4599;
  --color-gray-bg: #f5f7fb;
  --color-gray-border: #d2dae5;
  --color-gray-placeholder: #a5b1c2;
  --color-text-muted: #8898aa;

  --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --gradient-primary: linear-gradient(135deg, #13b5ea 0%, #1a3cb3 100%);
  --gradient-btn-active: linear-gradient(90deg, #10aaf0 0%, #0d3eb0 100%);
}

/* Base resets & styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.logss {
  max-width: 100%;
}

body {
  font-family: var(--font-body);
  background-color: #e2e8f0;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--color-navy);
  overflow-x: hidden;
  padding: 20px 0;
}

/* ==========================================================================
   SPLASH SCREEN
   ========================================================================== */

.splash-screen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #f5f7fb;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 60px 32px 40px;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.splash-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Top: Bima logo + loading bar */
.splash-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  gap: 24px;
}

.splash-bima-logo {
  width: 180px;
  max-width: 100%;
  object-fit: contain;
}

.splash-progress-bar {
  width: 200px;
  height: 3px;
  background-color: #e0e5ef;
  border-radius: 2px;
  overflow: hidden;
}

.splash-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--gradient-btn-active);
  border-radius: 2px;
  animation: splash-load 2.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes splash-load {
  0% {
    width: 0%;
  }

  60% {
    width: 70%;
  }

  85% {
    width: 88%;
  }

  100% {
    width: 100%;
  }
}

/* Bottom: Bank Jateng section */
.splash-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}

.splash-bankjateng-logo {
  width: 160px;
  max-width: 60%;
  object-fit: contain;
  margin-bottom: 4px;
}

.splash-bank-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  color: var(--color-navy);
  margin: 0;
}

.splash-disclaimer {
  font-family: var(--font-body);
  font-size: 10px;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin: 0;
  max-width: 280px;
}

.splash-version {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 12px;
  color: var(--color-navy);
  margin: 4px 0 0;
  letter-spacing: 0.3px;
}

/* ==========================================================================
   PHONE EMULATOR FRAMEWORK (Desktop only, responsive to mobile)
   ========================================================================== */

.emulator-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.phone-wrapper {
  position: relative;
  width: 390px;
  height: 844px;
  background-color: #ffffff;
  border-radius: 40px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25),
    0 0 0 10px rgba(0, 0, 0, 0.05);
  /* Outer bezel outline */
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 10px solid #000000;
  /* Phone bezel */
  z-index: 10;
}

/* Dynamic Notch (Camera pill) */
.phone-wrapper::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 25px;
  background-color: #000000;
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;
  z-index: 999;
}

/* Simulated Status Bar */
.phone-status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 38px;
  padding: 10px 24px 0 24px;
  background-color: transparent;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-navy);
  z-index: 99;
  font-family: var(--font-display);
}

.status-icons {
  display: flex;
  align-items: center;
  gap: 6px;
}

.battery-percent {
  font-size: 10px;
  margin-left: 2px;
}

/* Main inner application body viewport */
.app-main-container {
  position: relative;
  flex: 1;
  width: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* ==========================================================================
   SHARED ABSTRACT BACKGROUND (Matches all screens)
   ========================================================================== */

.abstract-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #ffffff;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

/* Abstract Background Images */
.bg-top {
  position: absolute;
  top: 0px;
  left: -300px;
  width: 550px;
  height: 550px;
  pointer-events: none;
}

.bg-bot {
  position: absolute;
  bottom: -50px;
  right: -100px;
  width: 380px;
  height: 380px;
  pointer-events: none;
}

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

  50% {
    transform: translate(15px, -15px) scale(1.08);
  }

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

/* ==========================================================================
   SCREENS SLIDER & LAYOUT
   ========================================================================== */

.screens-slider {
  display: flex;
  width: 500%;
  /* For 5 screens: Login, Verify, MPIN, Aktivasi, Success */
  height: 100%;
  z-index: 2;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.app-screen {
  width: 20%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 12px 20px 24px 20px;
  box-sizing: border-box;
}

/* Header style styling */
.screen-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 48px;
  margin-bottom: 10px;
}

.header-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  color: var(--color-navy);
  margin: 0;
  text-align: center;
}

.btn-header-back,
.btn-header-bell {
  background: transparent;
  border: none;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
  position: relative;
  transition: background-color 0.2s;
}

.btn-header-back:active,
.btn-header-bell:active {
  background-color: rgba(13, 33, 73, 0.05);
}

.disabled-btn {
  opacity: 0.15;
  pointer-events: none;
}

.text-navy {
  color: var(--color-navy);
}

.font-bold-icon {
  font-weight: 800 !important;
  font-size: 1.25rem;
}

.bell-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 6px;
  height: 6px;
  background-color: #ef4444;
  border-radius: 50%;
}

/* ==========================================================================
   SCREEN 1: LOGIN DESIGN
   ========================================================================== */

.bima-logo-gradient {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 64px;
  letter-spacing: -1.5px;
  background: linear-gradient(90deg, #13b5ea 0%, #1e4599 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  margin-bottom: 10px;
}

/* Form Inputs Underline Style */
.custom-input-group {
  position: relative;
  width: 100%;
}

.input-icon-wrapper {
  position: absolute;
  left: 4px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-gray-placeholder);
  transition: color 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.custom-underline-input {
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--color-gray-border);
  background-color: transparent !important;
  padding: 10px 5px 10px 38px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--color-navy);
  font-style: italic;
  font-weight: 300;
  outline: none;
  transition: border-color 0.3s, font-style 0.3s, font-weight 0.3s;
}

/* When typing inside, remove italic and make border blue */
.custom-underline-input:focus,
.custom-underline-input:not(:placeholder-shown) {
  font-style: normal;
  font-weight: 400;
  border-bottom-color: var(--color-sky-blue);
}

.custom-underline-input:focus+.input-icon-wrapper,
.custom-underline-input:not(:placeholder-shown)+.input-icon-wrapper {
  color: var(--color-sky-blue);
}

/* Eye Toggle Button for Password Field */
.btn-eye-toggle {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  padding: 4px;
  cursor: pointer;
  color: var(--color-gray-placeholder);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: color 0.25s;
  outline: none;
  z-index: 2;
}

.btn-eye-toggle:hover,
.btn-eye-toggle:focus {
  color: var(--color-sky-blue);
}

.btn-eye-toggle:active {
  transform: translateY(-50%) scale(0.9);
}

/* Form Options: Checkbox & forgot link */
.form-options {
  font-size: 13px;
}

.custom-checkbox .form-check-input {
  border-radius: 4px;
  border-color: var(--color-gray-border);
  cursor: pointer;
}

.custom-checkbox .form-check-input:checked {
  background-color: var(--color-purple);
  border-color: var(--color-purple);
}

.custom-checkbox .form-check-label {
  cursor: pointer;
  user-select: none;
}

.forgot-password-link {
  text-decoration: none;
  transition: color 0.2s;
}

.forgot-password-link:hover {
  color: var(--color-purple) !important;
}

/* Pill buttons design */
.btn-action-pill {
  border-radius: 50px;
  padding: 15px 20px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  text-align: center;
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 15px rgba(13, 33, 73, 0.08);
}

.btn-action-pill:active {
  transform: scale(0.98);
}

/* Disabled gray state */
.gray-btn {
  background-color: #d4d8e2;
  color: #8c98a9;
  cursor: not-allowed;
}

/* Enabled gradient state */
.gradient-btn {
  background: var(--gradient-btn-active);
  color: #ffffff;
}

.gradient-btn:hover {
  box-shadow: 0 6px 20px rgba(19, 181, 234, 0.35);
}

.version-text {
  font-size: 11px;
  color: var(--color-text-muted);
  letter-spacing: 0.5px;
}

/* ==========================================================================
   SCREEN 1: BIOMETRIC LOGIN SECTION
   ========================================================================== */

.biometric-section {
  padding: 4px 0 8px;
}

.biometric-label {
  font-size: 12px;
  font-style: italic;
  letter-spacing: 0.3px;
  margin-bottom: 10px;
}

.btn-biometric {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  outline: none;
  transition: transform 0.2s;
}

.btn-biometric:active {
  transform: scale(0.92);
}

.biometric-icon {
  font-size: 52px;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 4px 12px rgba(19, 181, 234, 0.4));
  animation: biometric-pulse 2.5s ease-in-out infinite;
}

@keyframes biometric-pulse {

  0%,
  100% {
    filter: drop-shadow(0 4px 12px rgba(19, 181, 234, 0.35));
  }

  50% {
    filter: drop-shadow(0 4px 20px rgba(19, 181, 234, 0.7));
  }
}

/* CS Chat Bubble pada Screen Login (posisi bottom-left absolut) */
.btn-login-chat-bubble {
  position: absolute;
  bottom: 28px;
  left: 24px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #7a5848;
  border: 2px solid #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: transform 0.15s;
  z-index: 10;
}

.btn-login-chat-bubble:active {
  transform: scale(0.9);
}

/* ==========================================================================
   SCREEN 2: VERIFIKASI DESIGN
   ========================================================================== */

/* Bank Card Mock Design */
.bank-card-container {
  background-color: #ffffff;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 10px 25px rgba(13, 33, 73, 0.05);
  border: 1px solid rgba(13, 33, 73, 0.03);
}

.star-badge {
  background: linear-gradient(135deg, #1fa2ff 0%, #12d8fa 50%, #29ffc6 100%);
  background-color: var(--color-sky-blue);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bank-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  color: var(--color-navy);
}

.italic-placeholder::placeholder {
  font-style: italic;
}

.card-num-input {
  border: none;
  border-bottom: 1px dashed var(--color-gray-border);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  color: var(--color-navy);
  width: 180px;
  outline: none;
  background: transparent;
  letter-spacing: 0.5px;
  transition: border-bottom-color 0.3s;
}

.card-num-input:focus {
  border-bottom: 1px solid var(--color-sky-blue);
}

.card-char-limit {
  font-size: 12px;
}

/* ATM Verification digits row */
.atm-digits-section {
  border-top: 1px solid #f0f3f7;
  padding-top: 15px;
}

.atm-digits-label {
  font-size: 12px;
  font-weight: 500;
}

.atm-digits-row {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 8px;
}

.atm-digit-box {
  width: 45px;
  height: 40px;
  border: none;
  border-bottom: 2px solid var(--color-gray-border);
  background: transparent;
  text-align: center;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--color-navy);
  outline: none;
  transition: border-bottom-color 0.3s;
}

.atm-digit-box:focus,
.atm-digit-box.active {
  border-bottom: 3px solid var(--color-sky-blue);
}

.announcement-text {
  font-size: 11px;
  line-height: 1.5;
  color: var(--color-text-muted) !important;
}

/* Balance Section */
.balance-section {
  border-top: 1px solid rgba(13, 33, 73, 0.05);
  padding-top: 20px;
}

.balance-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--color-navy);
}

.balance-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--color-gray-border);
  padding-bottom: 5px;
}

.wallet-icon {
  font-size: 20px;
  margin-right: 12px;
}

.balance-underline-input {
  border: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-navy);
  outline: none;
  width: 100%;
}

/* ==========================================================================
   SCREEN 3: MPIN DESIGN & KEYBOARD
   ========================================================================== */

.mpin-instruction {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 16px;
}

/* Open circles indicators */
.mpin-dots-row {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.mpin-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1.5px solid var(--color-gray-border);
  background-color: transparent;
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.mpin-dot.filled {
  background-color: var(--color-navy);
  border-color: var(--color-navy);
  transform: scale(1.15);
}

/* Custom 12-key Grid Layout */
.keyboard-container {
  width: 100%;
  background-color: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top-left-radius: 30px;
  border-top-right-radius: 30px;
  padding: 24px 16px;
  margin-left: -20px;
  margin-right: -20px;
  width: calc(100% + 40px);
  box-shadow: 0 -10px 30px rgba(13, 33, 73, 0.03);
}

.keyboard-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-row-gap: 15px;
  grid-column-gap: 15px;
  justify-items: center;
  align-items: center;
}

.key-btn {
  width: 72px;
  height: 52px;
  border-radius: 12px;
  border: none;
  background-color: #ffffff;
  color: var(--color-navy);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.15s, transform 0.1s, box-shadow 0.15s;
  box-shadow: 0 4px 8px rgba(13, 33, 73, 0.03);
}

.key-btn:active {
  background-color: #f0f3f8;
  transform: scale(0.95);
  box-shadow: none;
}

.icon-key {
  background-color: transparent;
  box-shadow: none;
}

.icon-key:active {
  background-color: rgba(13, 33, 73, 0.05);
}

.bi-backspace-svg {
  color: var(--color-navy);
}

/* Fingerprint wrapper with CS Support button bubble overlay */
.key-btn-wrapper {
  position: relative;
  width: 72px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-chat-bubble {
  position: absolute;
  bottom: 0px;
  left: 2px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: #7a5848;
  /* Exact brown shade from screenshot */
  border: 1.5px solid #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: transform 0.15s;
}

.btn-chat-bubble:active {
  transform: scale(0.9);
}

/* ==========================================================================
   SCREEN 4: AKTIVASI ULANG - CENTER NOTIFICATION BOX
   ========================================================================== */

.aktivasi-notif-box {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background-color: #fff1f1;
  border: 1px solid #fecaca;
  border-left: 4px solid #ef4444;
  border-radius: 12px;
  padding: 14px 16px;
  margin: 16px 8px 8px;
  text-align: left;
  animation: notif-slide-in 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes notif-slide-in {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.aktivasi-notif-icon {
  color: #ef4444;
  font-size: 18px;
  flex-shrink: 0;
  margin-top: 1px;
}

.aktivasi-notif-text {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: #c0392b;
  line-height: 1.5;
  margin: 0;
}

/* ==========================================================================
   SCREEN 4: SUCCESS LAYOUT
   ========================================================================== */

.success-animation-container {
  position: relative;
  width: 90px;
  height: 90px;
  margin: 0 auto;
}

.success-circle {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--gradient-btn-active);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 42px;
  z-index: 5;
  box-shadow: 0 6px 20px rgba(19, 181, 234, 0.3);
}

.success-circle-pulse {
  position: absolute;
  top: -8px;
  left: -8px;
  width: 106px;
  height: 106px;
  border-radius: 50%;
  background-color: rgba(19, 181, 234, 0.15);
  z-index: 1;
  animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {
  0% {
    transform: scale(0.95);
    opacity: 0.8;
  }

  50% {
    transform: scale(1.08);
    opacity: 0.4;
  }

  100% {
    transform: scale(0.95);
    opacity: 0.8;
  }
}

.success-info-card {
  background-color: #ffffff;
  border-radius: 16px;
  border: 1px solid rgba(13, 33, 73, 0.05);
  box-shadow: 0 4px 15px rgba(13, 33, 73, 0.02);
}

.text-sm {
  font-size: 13px;
}

/* ==========================================================================
   RESPONSIVE DESIGN (Adaptive styling)
   ========================================================================== */

@media (max-width: 576px) {
  body {
    padding: 0;
    background-color: #ffffff;
  }

  .phone-wrapper {
    width: 100%;
    height: 100vh;
    border: none;
    border-radius: 0;
    box-shadow: none;
  }

  .phone-wrapper::before {
    display: none;
    /* Hide top camera notch on real mobile devices */
  }

  .phone-status-bar {
    height: 48px;
    padding-top: 15px;
  }

  .keyboard-container {
    padding-bottom: 30px;
    /* Give space for system navigation on real mobile screens */
  }
}