﻿/* =========================================================
   PayRu — Auth Pages
   ========================================================= */

.auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

/* ---------- Branding panel ---------- */
.auth-panel {
  position: relative;
  background: var(--bg-soft);
  border-right: 1px solid var(--border-soft);
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.auth-panel::before {
  content: "";
  position: absolute;
  top: -180px;
  right: -180px;
  width: 460px;
  height: 460px;
  background: radial-gradient(circle, rgba(0, 224, 168, 0.18), transparent 70%);
}

.auth-panel::after {
  content: "";
  position: absolute;
  bottom: -200px;
  left: -160px;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(124, 108, 246, 0.16), transparent 70%);
}

.auth-panel-content {
  position: relative;
  z-index: 1;
  max-width: 460px;
  margin: 60px 0;
}

.auth-panel-content h1 {
  font-size: clamp(28px, 4vw, 38px);
  margin-bottom: 16px;
}

.auth-panel-content p {
  color: var(--text-muted);
  font-size: 16px;
  margin-bottom: 36px;
}

.auth-feature-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.auth-feature {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.auth-feature .feature-icon {
  width: 42px;
  height: 42px;
  font-size: 20px;
  flex-shrink: 0;
}

.auth-feature h4 {
  font-size: 15px;
  margin-bottom: 4px;
}

.auth-feature p {
  font-size: 13.5px;
  margin: 0;
}

.auth-panel-footer {
  position: relative;
  z-index: 1;
  font-size: 13.5px;
  color: var(--text-dim);
}

/* ---------- Form side ---------- */
.auth-form-side {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}

.auth-card {
  width: 100%;
  max-width: 440px;
}

.auth-card .logo {
  margin-bottom: 32px;
}

.auth-card h2 {
  font-size: 28px;
  margin-bottom: 8px;
}

.auth-card > p {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 32px;
}

.auth-switch {
  text-align: center;
  margin-top: 24px;
  font-size: 14.5px;
  color: var(--text-muted);
}

.auth-switch a {
  color: var(--primary);
  font-weight: 600;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 24px 0;
  color: var(--text-dim);
  font-size: 13px;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border-soft);
}

.demo-hint {
  background: var(--info-soft);
  border: 1px solid rgba(78, 161, 255, 0.25);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 13px;
  color: var(--info);
  margin-bottom: 24px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.demo-hint i {
  font-size: 18px;
  flex-shrink: 0;
  margin-top: 1px;
}

.demo-hint strong {
  color: var(--text);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
  transition: color var(--transition);
}

.back-link:hover {
  color: var(--primary);
}

/* ---------- Password strength ---------- */
.pw-strength {
  display: flex;
  gap: 5px;
  margin-top: 8px;
}

.pw-strength i {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: var(--border);
  transition: background var(--transition);
}

.pw-strength.weak i:nth-child(1) { background: var(--danger); }
.pw-strength.medium i:nth-child(1),
.pw-strength.medium i:nth-child(2) { background: var(--warning); }
.pw-strength.strong i { background: var(--success); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .auth-page {
    grid-template-columns: 1fr;
  }

  .auth-panel {
    display: none;
  }
}

/* =========================================================
   Centered standalone pages (KYC onboarding, etc.)
   ========================================================= */
.simple-topbar {
  height: var(--header-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border-soft);
}

.simple-topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.centered-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.center-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 50px 24px;
}

.kyc-card {
  width: 100%;
  max-width: 640px;
}

.kyc-card .card {
  margin-top: 28px;
}

.kyc-head {
  text-align: center;
}

.kyc-head .feature-icon {
  margin: 0 auto 18px;
  width: 60px;
  height: 60px;
  font-size: 28px;
  border-radius: var(--radius-lg);
}

.kyc-head h2 {
  font-size: 26px;
  margin-bottom: 8px;
}

.kyc-head p {
  color: var(--text-muted);
  max-width: 440px;
  margin: 0 auto;
}

.kyc-status-card {
  text-align: center;
  padding: 50px 30px;
}

.kyc-status-card .feature-icon {
  margin: 0 auto 22px;
  width: 70px;
  height: 70px;
  font-size: 32px;
  border-radius: var(--radius-lg);
}

.kyc-status-card h2 {
  margin-bottom: 10px;
}

.kyc-status-card p {
  color: var(--text-muted);
  max-width: 420px;
  margin: 0 auto 28px;
}

/* ---------- File upload (KYC document) ---------- */
.file-input-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
}

.file-drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  padding: 28px 20px;
  border: 1.5px dashed var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  cursor: pointer;
  transition: all var(--transition);
}

.file-drop:hover,
.file-drop.dragover {
  border-color: var(--primary);
  background: var(--primary-soft);
}

.file-drop-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  background: var(--surface-2);
  color: var(--primary);
}

.file-drop-text {
  font-size: 14px;
  color: var(--text-muted);
}

.file-drop-text strong {
  color: var(--text);
}

.file-drop-text span {
  display: block;
  font-size: 12.5px;
  color: var(--text-dim);
  margin-top: 4px;
}

.file-drop-preview {
  max-width: 100%;
  max-height: 200px;
  border-radius: var(--radius-sm);
  object-fit: contain;
}

.file-drop.has-preview {
  padding: 12px;
}

.file-drop.has-preview .file-drop-icon {
  display: none;
}
