*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html, body { width: 100%; height: 100%; overflow: hidden; font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; }
body { display: block !important; opacity: 1 !important; transition: opacity 0.15s ease-in; }

h1, h2, h3, .view-title, .brand-title, .mobile-view-title {
  font-family: 'Sora', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

#video-intro {
  position: fixed; inset: 0; z-index: 300;
  background: #000000;
  opacity: 1;
  transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}
#intro-video { width: 100%; height: 100%; object-fit: contain; display: block; transform: scale(0.85); }
#video-intro.fade-out { opacity: 0; pointer-events: none; }



#login-screen {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  background: #E0FAFC;
  opacity: 0; pointer-events: none;
  transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}
#login-screen.visible { opacity: 1; pointer-events: all; }

/* soft ambient glow blobs on #E0FAFC */
.login-bg-blob { position: absolute; border-radius: 50%; pointer-events: none; filter: blur(90px); }
.lbb1 {
  width: 520px; height: 520px;
  background: radial-gradient(circle, #C2F6F9 0%, #E0FAFC 60%, transparent 70%);
  opacity: 0.6;
  top: -120px; right: -120px;
}
.lbb2 {
  width: 420px; height: 420px;
  background: radial-gradient(circle, #C2F6F9 0%, #E0FAFC 60%, transparent 70%);
  opacity: 0.5;
  bottom: -100px; left: -100px;
}

.login-card {
  position: relative; z-index: 10;
  width: min(920px, 95vw); min-height: 540px;
  border-radius: 28px; overflow: hidden; display: flex;
  background: #FFFFFF;
  border: 1.5px solid #C2F6F9;
  box-shadow:
    0 2px 6px rgba(2, 216, 232, 0.08),
    0 12px 36px rgba(2, 216, 232, 0.22),
    0 32px 80px rgba(0, 0, 0, 0.08);
  animation: cardIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes cardIn { from { opacity: 0; transform: translateY(30px) scale(0.97); } to { opacity: 1; transform: translateY(0) scale(1); } }

/* Left panel with grade-in grade-out vertical beam Aqua gradient */
.left-panel {
  width: 42%;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(224, 250, 252, 0.5) 0%, rgba(109, 233, 242, 0.3) 45%, transparent 75%),
    linear-gradient(177deg, #02D8E8 0%, #1CDCEA 16%, #36E0ED 32%, #6DE9F2 46%, #89EDF4 50%, #6DE9F2 54%, #36E0ED 68%, #1CDCEA 84%, #02D8E8 100%);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 48px 36px; position: relative; overflow: hidden;
}
.left-panel::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.25) 1px, transparent 1px);
  background-size: 28px 28px;
}
.left-panel::after {
  content: ''; position: absolute;
  width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.45) 0%, transparent 70%);
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  animation: leftGlow 4s ease-in-out infinite alternate;
}
@keyframes leftGlow {
  from { transform: translate(-50%, -50%) scale(0.9); opacity: 0.6; }
  to   { transform: translate(-50%, -50%) scale(1.25); opacity: 1; }
}
.left-content { position: relative; z-index: 2; text-align: center; }

.left-brand img {
  width: min(280px, 90%);
  max-width: 300px;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 6px 20px rgba(0, 0, 0, 0.15));
}

.right-panel {
  flex: 1; background: var(--white, #FFFFFF);
  display: flex; flex-direction: column; justify-content: center;
  padding: 48px 52px;
}
.right-view { display: none; flex-direction: column; justify-content: center; }
.right-view.active { display: flex; animation: fD 0.4s ease both; }
@keyframes fD { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } } 

.view-card-body {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.mobile-header-block {
  display: none;
}

.desktop-view-title-wrap {
  margin-bottom: 16px;
}

.view-title { 
  font-size: calc(26px * var(--sn-font-scale, 1)); 
  font-weight: 800; 
  color: #0F172A; 
  letter-spacing: -0.03em; 
  margin-bottom: 6px; 
}
.view-sub { 
  font-size: calc(13px * var(--sn-font-scale, 1)); 
  color: #64748B; 
  line-height: 1.5; 
}

/* Secure login pill badge */
.secure-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 14px;
  border-radius: 9999px;
  background: rgba(2, 216, 232, 0.12);
  border: 1px solid rgba(2, 216, 232, 0.45);
  color: #028B99;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
  width: fit-content;
}
.secure-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #00E5FF;
  box-shadow: 0 0 8px #00E5FF;
}

/* Info banner */
.info-banner {
  background: #E8FAF9;
  border: 1.5px solid #A5F3FC;
  border-radius: 14px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}
.info-banner-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: #C2F6F9;
  color: #028B99;
  flex-shrink: 0;
}
.info-banner-text {
  font-size: 13px;
  color: #0E7490;
  font-weight: 500;
  line-height: 1.45;
}

/* back button */
.back-btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: calc(12px * var(--sn-font-scale, 1)); font-weight: 600; color: #028B99;
  background: none; border: none; cursor: pointer; padding: 0;
  margin-bottom: 20px; font-family: var(--font-family-primary) !important;
  transition: color 0.15s;
}
.back-btn:hover { color: #00707B; }

/* fields */
.field { margin-bottom: 18px; position: relative; }
.field-label { 
  display: block; 
  font-family: 'Sora', sans-serif;
  font-size: calc(11.5px * var(--sn-font-scale, 1)); 
  font-weight: 800; 
  color: #0F172A; 
  letter-spacing: 0.05em; 
  text-transform: uppercase;
  margin-bottom: 7px; 
}
.field-wrap { position: relative; }

.field-input {
  width: 100%; padding: 12px 14px 12px 42px;
  min-height: 48px;
  background: #FFFFFF; border: 1.5px solid #C2F6F9;
  border-radius: 12px; font-family: var(--font-family-primary) !important; font-size: calc(13.5px * var(--sn-font-scale, 1)); color: #0F172A; outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s, transform 0.15s;
}
.field-input::placeholder { color: #94A3B8; opacity: 1; }
.field-input:hover { border-color: #36E0ED; background: #F8FEFF; }
.field-input:focus { border-color: #02D8E8; background: #FFFFFF; box-shadow: 0 0 0 3.5px rgba(2, 216, 232, 0.22); transform: translateY(-1px); }
.field-input.error { border-color: #EF4444; box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.18); }

.field-icon { 
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%); 
  color: #64748B; pointer-events: none; display: flex; transition: color 0.2s; 
}
.field-wrap:focus-within .field-icon { color: #02D8E8; }

.eye-btn { 
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%); 
  background: none; border: none; cursor: pointer; color: #64748B; 
  display: flex; align-items: center; padding: 6px; border-radius: 6px; transition: color 0.15s; 
}
.eye-btn:hover { color: #02D8E8; }

.err-msg { font-size: calc(11.5px * var(--sn-font-scale, 1)); color: #EF4444; font-weight: 500; margin-top: 6px; display: none; align-items: center; gap: 4px; }
.err-msg.show { display: flex; }

/* remember me & forgot password row */
.login-options-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 12px 0 24px;
}
.remember-checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: calc(12.5px * var(--sn-font-scale, 1));
  color: #475569;
  user-select: none;
}
.remember-checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #02D8E8;
  cursor: pointer;
  border-radius: 4px;
}
.forgot-link {
  font-size: calc(12.5px * var(--sn-font-scale, 1));
  font-weight: 700;
  color: #028B99;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.15s;
}
.forgot-link:hover {
  color: #00707B;
  text-decoration: underline;
}

/* gradient button (cyan to rich blue) */
.login-btn {
  width: 100%; min-height: 48px; padding: 13px 20px; border: none; border-radius: 14px; cursor: pointer;
  background: linear-gradient(90deg, #00D2FF 0%, #2575FC 100%);
  color: #FFFFFF; font-family: var(--font-family-primary) !important; font-size: calc(14.5px * var(--sn-font-scale, 1)); font-weight: 700;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 18px rgba(0, 153, 255, 0.35);
  position: relative; overflow: hidden;
}
.login-btn:hover {
  background: linear-gradient(90deg, #1BD6FF 0%, #3B82F6 100%);
  transform: translateY(-1px);
  box-shadow: 0 8px 26px rgba(0, 153, 255, 0.5);
}
.login-btn:active { transform: translateY(0); }
.login-btn.loading { opacity: 0.85; cursor: not-allowed; }
.btn-inner { display: flex; align-items: center; gap: 8px; }
.login-btn.loading .btn-inner { display: none; }
.login-btn.loading .spinner { display: block; }
.spinner { 
  display: none; width: 18px; height: 18px; 
  border: 2.5px solid rgba(255,255,255,0.4); 
  border-top-color: #FFFFFF; border-radius: 50%; 
  animation: spin 0.7s linear infinite; 
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Footer Protected By SafeNod */
.footer-protected {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 32px;
}
.footer-divider-line {
  flex: 1;
  height: 1px;
  background: #E2E8F0;
}
.footer-protected-text {
  font-size: calc(11.5px * var(--sn-font-scale, 1));
  color: #94A3B8;
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

/* OTP */
.otp-wrap { display: flex; gap: 10px; margin-bottom: 12px; }
.otp-box {
  width: 48px; height: 56px; text-align: center;
  font-size: calc(22px * var(--sn-font-scale, 1)); font-weight: 700;
  border: 2px solid #C2F6F9; border-radius: 10px;
  background: #FFFFFF; font-family: var(--font-family-primary) !important;
  color: #0F172A; outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.otp-box:focus { border-color: #02D8E8; box-shadow: 0 0 0 3px rgba(2, 216, 232, 0.25); background: #FFFFFF; }
.otp-box.filled { border-color: #02D8E8; background: #E0FAFC; }
.otp-box.error-box { border-color: #EF4444; }

.resend-row { font-size: calc(12px * var(--sn-font-scale, 1)); color: #64748B; display: flex; align-items: center; gap: 6px; margin-top: 4px; }
.resend-btn { background: none; border: none; color: #028B99; font-weight: 600; cursor: pointer; font-family: var(--font-family-primary) !important; font-size: calc(12px * var(--sn-font-scale, 1)); padding: 0; transition: color 0.15s; }
.resend-btn:hover { color: #00707B; }
.resend-btn:disabled { color: #CBD5E1; cursor: not-allowed; }

/* password strength */
.strength-wrap { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.strength-bar { flex: 1; height: 4px; background: #C2F6F9; border-radius: 4px; overflow: hidden; }
.strength-fill { height: 100%; width: 0%; border-radius: 4px; transition: width 0.3s, background 0.3s; background: #02D8E8; }
.strength-label { font-size: calc(11px * var(--sn-font-scale, 1)); font-weight: 600; min-width: 40px; color: #02D8E8; }

/* global error */
.global-error { 
  display: none; align-items: center; gap: 10px; 
  padding: 12px 16px; background: #FEF2F2; 
  border: 1.5px solid #FCA5A5; border-radius: 12px; 
  margin-bottom: 20px; font-size: calc(12.5px * var(--sn-font-scale, 1)); 
  font-weight: 600; color: #991B1B; 
}
.global-error.show { display: flex; }

/* toast */
.toast {
  position: fixed; top: 24px; right: 24px; z-index: 999;
  background: #02D8E8; color: #0F172A;
  padding: 12px 20px; border-radius: 12px; font-size: calc(13px * var(--sn-font-scale, 1)); font-weight: 700;
  display: flex; align-items: center; gap: 8px;
  transform: translateY(-80px); opacity: 0;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s;
  box-shadow: 0 8px 32px rgba(2, 216, 232, 0.50);
}
.toast.show { transform: translateY(0); opacity: 1; }

/* MOBILE RESPONSIVE LAYOUT MATCHING USER DEMO SCREENSHOTS */
@media (max-width: 640px) {
  html, body {
    overflow-y: auto !important;
    height: auto !important;
    min-height: 100%;
  }

  #login-screen {
    position: relative;
    inset: auto;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    background: linear-gradient(165deg, #02d8e8 0%, #00c6ff 30%, #0072ff 90%) !important;
    overflow-y: auto;
  }

  .login-bg-blob {
    display: none;
  }

  .login-card {
    width: 100%;
    min-height: 100vh;
    border-radius: 0;
    border: none;
    box-shadow: none;
    background: transparent;
    display: flex;
    flex-direction: column;
    animation: none;
  }

  .left-panel {
    display: none;
  }

  .right-panel {
    background: transparent;
    padding: 0;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 100vh;
  }

  .right-view {
    display: none;
    flex: 1;
    flex-direction: column;
    min-height: 100vh;
  }

  .right-view.active {
    display: flex;
  }

  .mobile-header-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 38px 24px 26px;
    width: 100%;
  }

  .mobile-brand {
    margin-bottom: 24px;
  }

  .mobile-logo-img {
    height: 48px;
    width: auto;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.15));
  }

  .mobile-secure-pill {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.5);
    color: #FFFFFF;
    margin-bottom: 12px;
    backdrop-filter: blur(8px);
  }

  .mobile-view-title {
    font-size: 32px;
    font-weight: 800;
    color: #FFFFFF;
    letter-spacing: -0.02em;
    line-height: 1.15;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
  }

  .desktop-view-title-wrap {
    display: none !important;
  }

  .view-card-body {
    background: #FFFFFF;
    border-top-left-radius: 30px;
    border-top-right-radius: 30px;
    padding: 34px 24px 44px;
    flex: 1;
    display: flex;
    flex-direction: column;
    box-shadow: 0 -12px 36px rgba(0, 0, 0, 0.08);
  }
}
