/* ============================================
   LOGIN.CSS - Wave Banking Premium Design
   ============================================ */

:root {
  --log-primary:      #1a2a3a;
  --log-primary-2:    #0d1f2d;
  --log-accent:       #d4a64a;
  --log-bg:           #08182a;
  --log-surface:      rgba(255,255,255,0.93);
  --log-border:       rgba(26,42,58,0.18);
  --log-text:         #0d2137;
  --log-text-2:       #4d6a7e;
  --log-shadow:       0 6px 28px rgba(26,42,58,0.16);
  --log-shadow-hover: 0 10px 34px rgba(26,42,58,0.25);
  --log-danger:       #ef4444;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'DM Sans', system-ui, sans-serif;
  color: var(--log-text);
  background-color: var(--log-bg);
  background-image:
    radial-gradient(ellipse 68% 52% at 16% 10%, rgba(26,42,58,0.38) 0%, transparent 70%),
    radial-gradient(ellipse 56% 45% at 84% 85%, rgba(13,31,45,0.28) 0%, transparent 65%),
    radial-gradient(ellipse 42% 35% at 58% 48%, rgba(212,166,74,0.10) 0%, transparent 65%),
    linear-gradient(135deg, #1a2a3a, #0d1f2d);
  background-attachment: fixed;
  padding: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-shell {
  width: min(1080px, 100%);
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
  gap: 1rem;
  align-items: stretch;
}

.login-side,
.login-container {
  border-radius: 26px;
  border: 1px solid var(--log-border);
  box-shadow: var(--log-shadow);
}

.login-side {
  background: linear-gradient(135deg, #1a2a3a, #0d1f2d);
  color: #e6f7f6;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: relative;
  overflow: hidden;
}

.login-side::after {
  content: '';
  position: absolute;
  width: 220px;
  height: 220px;
  right: -100px;
  bottom: -120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(13,31,45,0.35), transparent 70%);
  pointer-events: none;
}

.side-title {
  margin: 0;
  font-family: 'Sora', sans-serif;
  font-size: 2rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.side-subtitle {
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.55;
  color: rgba(230,247,246,0.84);
}

.side-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
}

.side-stat-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 14px;
  padding: 0.9rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.side-stat-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(230,247,246,0.7);
  font-weight: 600;
}

.side-stat-value {
  font-family: 'Sora', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: #9cf3ee;
}

.side-stat-suffix {
  font-size: 0.8rem;
  font-weight: 700;
  color: #9cf3ee;
}

.security-tip {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  background: rgba(13,31,45,0.15);
  border: 1px solid rgba(13,31,45,0.34);
  border-radius: 14px;
  padding: 0.85rem 0.9rem;
}

.security-tip i {
  color: #b8fcf7;
  margin-top: 0.1rem;
}

.security-tip p {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.4;
}

.login-container {
  background: var(--log-surface);
  padding: 2rem 1.8rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.login-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(135deg, #1a2a3a, #0d1f2d);
}

.logo {
  width: 200px;
  max-width: 100%;
  margin-bottom: 1.5rem;
}

.login-form {
  text-align: left;
}

.input-container {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.1rem;
}

.input-container label {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--log-text-2);
}

.input-container input {
  width: 100%;
  padding: 0.78rem 1rem;
  border: 1.5px solid #dce5ec;
  border-radius: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  color: var(--log-text);
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.input-container input:focus {
  outline: none;
  border-color: var(--log-primary);
  box-shadow: 0 0 0 3px rgba(26,42,58,0.13);
}

.code-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.code-head h2 {
  margin: 0;
  font-family: 'Sora', sans-serif;
  font-size: 0.96rem;
  color: var(--log-text);
}

.text-action {
  border: none;
  background: rgba(26,42,58,0.1);
  border: 1px solid rgba(26,42,58,0.24);
  color: var(--log-primary);
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
}

.code-display {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.5rem;
  margin-bottom: 0.95rem;
}

.code-dot {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  background: #e7eef3;
  border: 1px solid #d8e1e8;
  transition: transform 0.2s, background 0.2s;
}

.code-dot.filled {
  background: linear-gradient(135deg, #1a2a3a, #0d1f2d);
  border-color: rgba(26,42,58,0.4);
  transform: scale(1.03);
}

.numeric-keypad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.55rem;
  padding: 0.9rem;
  border-radius: 14px;
  background: #f4f8fb;
  border: 1px solid #e4edf3;
}

.keypad-button {
  border: none;
  border-radius: 12px;
  padding: 0.88rem;
  font-family: 'Sora', sans-serif;
  font-size: 1.08rem;
  font-weight: 700;
  cursor: pointer;
  color: var(--log-text);
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s, color 0.15s;
}

.keypad-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(26,42,58,0.18);
  background: rgba(26,42,58,0.09);
  color: var(--log-primary);
}

.keypad-button.function-key {
  background: linear-gradient(135deg, #1a2a3a, #0d1f2d);
  color: #fff;
}

.login-btn {
  width: 100%;
  border: none;
  border-radius: 12px;
  margin-top: 1rem;
  padding: 0.92rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #fff;
  background: linear-gradient(135deg, #1a2a3a, #0d1f2d);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 4px 14px rgba(26,42,58,0.3);
  transition: transform 0.2s, box-shadow 0.2s;
}

.login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(26,42,58,0.38);
}

.error-message {
  color: #991b1b;
  margin-top: 0.8rem;
  padding: 0.7rem 0.8rem;
  border-radius: 10px;
  border: 1px solid rgba(239,68,68,0.3);
  background: rgba(239,68,68,0.12);
  display: none;
  font-size: 0.83rem;
  font-weight: 600;
  animation: shake 0.45s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-3px); }
  75% { transform: translateX(3px); }
}

@keyframes revealUp {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-slide-in {
  animation: revealUp 0.55s cubic-bezier(0.22,1,0.36,1) both;
}

@media (max-width: 980px) {
  .login-shell {
    grid-template-columns: 1fr;
    max-width: 540px;
  }

  .login-side {
    order: 2;
  }

  .login-container {
    order: 1;
  }
}

@media (max-width: 560px) {
  body {
    padding: 0.75rem;
  }

  .login-container,
  .login-side {
    border-radius: 18px;
  }

  .login-container {
    padding: 1.35rem 1rem;
  }

  .login-side {
    padding: 1.3rem 1rem;
  }

  .side-title {
    font-size: 1.45rem;
  }

  .side-stats {
    grid-template-columns: 1fr;
  }

  .keypad-button {
    padding: 0.72rem;
    font-size: 1rem;
  }
}









/* SG Simple Theme Override */
body {
  background: #f7f7f7 !important;
  background-image: none !important;
  color: #111111 !important;
}

.main-card,
.accounts-overview,
.chart-card,
.quick-card,
.services-card,
.tips-card,
.recent-transactions,
.notifications-section,
.credit-card,
.limits-section,
.insights-section,
.activity-section,
.card-offer-banner,
.virement-form,
.transfer-insights,
.beneficiary-suggestions,
.header-actions,
.overview-card,
.account-card,
.option-card,
.activity-feed,
.profile-header,
.profile-form,
.security-status,
.security-card,
.preference-card,
.document-card,
.profile-activity,
.rib-card,
.additional-info,
.filters-panel,
.transactions-list,
.analytics-section,
.smart-alert-banner,
.login-container,
.login-side {
  background: #ffffff !important;
  background-image: none !important;
  border-color: #e5e5e5 !important;
  color: #111111 !important;
}

.filter-button,
.apply-filters,
.submit-button,
.action-button,
.upload-button,
.offer-button,
.refresh-suggestions,
.tip-btn,
.modal-button,
.login-btn,
.show-pin-btn,
.confirm-block {
  background: #1a2a3a !important;
  color: #ffffff !important;
  border-color: #1a2a3a !important;
}

.export-button,
.reset-filters,
.action-button.share-rib,
.secondary-btn {
  background: #0d1f2d !important;
  color: #ffffff !important;
  border-color: #0d1f2d !important;
}

.bottom-nav {
  background: #0d1f2d !important;
  border-color: rgba(26, 42, 58, 0.35) !important;
}

.bottom-nav .nav-item.active {
  background: #1a2a3a !important;
  color: #ffffff !important;
}
