/* =============================================
   iFinance — Login / Register Page Styles
   ============================================= */

body.auth-page {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ---- Layout split ---- */
.auth-layout {
  display: flex;
  min-height: 100vh;
}

/* ============ LEFT: Showcase ============ */
.auth-showcase {
  flex: 1 1 55%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 48px;
  overflow: hidden;
  background: linear-gradient(135deg, #0d1b2e 0%, #0b1120 100%);
}

/* Decorative glow blobs */
.auth-showcase::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59,130,246,0.18) 0%, transparent 70%);
  top: -100px;
  left: -100px;
  pointer-events: none;
}
.auth-showcase::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(16,185,129,0.14) 0%, transparent 70%);
  bottom: -80px;
  right: 40px;
  pointer-events: none;
}

.showcase-inner {
  position: relative;
  z-index: 1;
  max-width: 540px;
  width: 100%;
}

/* Logo */
.showcase-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 40px;
}
.showcase-logo img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
}
.showcase-logo span {
  font-size: 24px;
  font-weight: 900;
  color: #f8fafc;
  letter-spacing: -0.5px;
}

/* Hero text */
.showcase-title {
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 900;
  line-height: 1.15;
  color: #f8fafc;
  margin: 0 0 16px;
  letter-spacing: -1px;
}
.showcase-title .hl-green { color: #10b981; }
.showcase-title .hl-blue  { color: #60a5fa; }

.showcase-sub {
  font-size: 16px;
  color: #94a3b8;
  line-height: 1.6;
  margin: 0 0 40px;
  max-width: 420px;
}

/* Feature grid */
.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 36px;
}

.feature-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  padding: 16px;
  transition: background 0.2s, border-color 0.2s;
}
.feature-card:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.12);
}

.feature-icon {
  font-size: 24px;
  flex-shrink: 0;
  line-height: 1;
  margin-top: 2px;
}
.feature-card h3 {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 800;
  color: #f1f5f9;
}
.feature-card p {
  margin: 0;
  font-size: 12px;
  color: #64748b;
  line-height: 1.45;
}

/* ---- Mock dashboard preview ---- */
.dashboard-preview {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 20px;
  backdrop-filter: blur(10px);
}

.preview-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.preview-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.preview-dot.red   { background: #ef4444; }
.preview-dot.yellow{ background: #f59e0b; }
.preview-dot.green { background: #10b981; }
.preview-title-bar {
  flex: 1;
  height: 8px;
  background: rgba(255,255,255,0.06);
  border-radius: 4px;
}

.preview-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}
.preview-stat {
  background: rgba(255,255,255,0.04);
  border-radius: 10px;
  padding: 12px;
  text-align: center;
}
.preview-stat-label {
  font-size: 10px;
  color: #64748b;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}
.preview-stat-value {
  font-size: 15px;
  font-weight: 900;
}
.preview-stat-value.green { color: #10b981; }
.preview-stat-value.red   { color: #ef4444; }
.preview-stat-value.blue  { color: #60a5fa; }

.preview-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.preview-row-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: rgba(255,255,255,0.03);
  border-radius: 8px;
}
.preview-row-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.preview-row-desc {
  flex: 1;
  height: 8px;
  background: rgba(255,255,255,0.08);
  border-radius: 4px;
}
.preview-row-tag {
  width: 40px;
  height: 8px;
  background: rgba(255,255,255,0.05);
  border-radius: 4px;
}
.preview-row-val {
  font-size: 12px;
  font-weight: 800;
}

/* ============ RIGHT: Form panel ============ */
.auth-form-panel {
  flex: 0 0 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 40px;
  background: rgba(15, 23, 42, 0.95);
  border-left: 1px solid rgba(255,255,255,0.06);
  position: relative;
}

.auth-form-wrap {
  width: 100%;
  max-width: 340px;
}

/* Mobile logo (hidden on desktop) */
.auth-logo-mobile {
  display: none;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
}
.auth-logo-mobile img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}
.auth-logo-mobile span {
  font-size: 20px;
  font-weight: 900;
  color: #f8fafc;
}

.auth-form-wrap h2 {
  margin: 0 0 6px;
  font-size: 26px;
  font-weight: 900;
  color: #f8fafc;
  letter-spacing: -0.5px;
}
.auth-form-wrap > p {
  margin: 0 0 28px;
  color: #64748b;
  font-size: 14px;
}

/* Fields */
.auth-field {
  margin-bottom: 16px;
}
.auth-field label {
  display: block;
  font-size: 12px;
  font-weight: 800;
  color: #94a3b8;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.auth-field input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(0,0,0,0.3);
  color: #f8fafc;
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.auth-field input::placeholder {
  color: #334155;
}
.auth-field input:focus {
  border-color: rgba(59,130,246,0.6);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
}

/* Submit button */
.btn-auth {
  width: 100%;
  margin-top: 8px;
  padding: 13px 16px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #fff;
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
  transition: filter 0.2s, transform 0.1s;
  letter-spacing: 0.2px;
}
.btn-auth:hover  { filter: brightness(1.1); }
.btn-auth:active { transform: scale(0.99); }

/* Hint link */
.auth-hint {
  margin: 20px 0 0;
  text-align: center;
  font-size: 14px;
  color: #475569;
}
.auth-hint a {
  color: #60a5fa;
  font-weight: 700;
  text-decoration: none;
}
.auth-hint a:hover { text-decoration: underline; }

/* Divider */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: #334155;
  font-size: 12px;
  font-weight: 600;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.07);
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .auth-layout {
    flex-direction: column;
  }

  .auth-showcase {
    flex: none;
    padding: 40px 24px 32px;
  }

  .features-grid {
    grid-template-columns: 1fr 1fr;
  }

  .auth-form-panel {
    flex: none;
    border-left: none;
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 36px 24px 48px;
  }

  .auth-logo-mobile {
    display: flex;
  }

  .showcase-logo {
    display: none;
  }

  .auth-form-wrap {
    max-width: 100%;
  }
}

@media (max-width: 520px) {
  .features-grid {
    grid-template-columns: 1fr;
  }

  .auth-showcase {
    padding: 28px 20px 24px;
  }

  .auth-form-panel {
    padding: 28px 20px 40px;
  }

  .showcase-title {
    font-size: 26px;
  }

  .preview-stats {
    grid-template-columns: repeat(3, 1fr);
  }
}
