/* ===== Auth body / screen ===== */
.auth-body {
  margin: 0;
}
.auth-screen {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

/* ===== Form side ===== */
.auth-form-side {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 40px 64px;
  background: #fff;
}
.auth-logo {
  align-self: flex-start;
}

.auth-form-wrap {
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
  padding: 40px 0;
}
.auth-title {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.4px;
  color: var(--text-dark);
}
.auth-sub {
  margin-top: 8px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-body);
}

/* ----- Social buttons ----- */
.auth-social-row {
  display: flex;
  gap: 12px;
  margin-top: 28px;
}
.auth-social-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 0;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  background: #fff;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.auth-social-btn:hover {
  background: var(--bg-soft);
  border-color: #cbd5e1;
}

.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 26px 0;
  color: var(--text-muted);
  font-size: 12.5px;
}
.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}
.auth-divider span {
  padding: 0 12px;
  white-space: nowrap;
}

/* ----- Form fields ----- */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.auth-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.auth-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.auth-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 6px;
  display: block;
}
.auth-label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}
.auth-label-row .auth-label { margin-bottom: 6px; }
.auth-link-inline {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--blue);
}
.auth-link-inline:hover { text-decoration: underline; }

.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"],
.auth-form input[type="tel"] {
  width: 100%;
  padding: 11px 14px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text-dark);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  background: #fff;
  outline: none;
  transition: border-color 0.15s ease;
}
.auth-form input:focus {
  border-color: var(--blue);
}

.auth-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 13px;
  color: var(--text-body);
  cursor: pointer;
  margin-top: 2px;
  line-height: 1.5;
}
.auth-checkbox input {
  margin-top: 2px;
  width: 15px;
  height: 15px;
  accent-color: var(--blue);
  flex-shrink: 0;
}
.auth-checkbox a {
  color: var(--blue);
  font-weight: 600;
}
.auth-checkbox a:hover { text-decoration: underline; }

.btn-lg.btn-block { padding: 12px 0; font-size: 15px; margin-top: 6px; }

.auth-kyc-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 20px;
  padding: 13px 14px;
  background: var(--blue-pale-2);
  border-radius: 8px;
  font-size: 12.5px;
  line-height: 1.55;
  color: #1e40af;
}
.auth-kyc-note svg { flex-shrink: 0; margin-top: 1px; }

.auth-switch {
  margin-top: 24px;
  text-align: center;
  font-size: 14px;
  color: var(--text-body);
}
.auth-switch a {
  color: var(--blue);
  font-weight: 600;
}
.auth-switch a:hover { text-decoration: underline; }

.auth-footer-note {
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-muted);
  text-align: center;
  max-width: 380px;
  margin: 0 auto;
}
.auth-footer-note a {
  color: var(--text-muted);
  text-decoration: underline;
}
.auth-footer-note a:hover { color: var(--blue); }

/* ===== Visual side ===== */
.auth-visual-side {
  position: relative;
  background: linear-gradient(160deg, #1d4ed8, #1e3a8a 70%);
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 64px;
}
.auth-visual-glow {
  position: absolute;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(96,165,250,0.35), transparent 70%);
  top: -140px;
  right: -120px;
  filter: blur(10px);
}
.auth-visual-content {
  position: relative;
  z-index: 1;
  max-width: 420px;
}
.auth-visual-eyebrow {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #bfdbfe;
  background: rgba(255,255,255,0.12);
  padding: 5px 14px;
  border-radius: 20px;
}
.auth-visual-title {
  margin-top: 22px;
  font-size: 30px;
  line-height: 1.28;
  font-weight: 800;
  letter-spacing: -0.4px;
  color: #fff;
}
.auth-visual-sub {
  margin-top: 16px;
  font-size: 14.5px;
  line-height: 1.65;
  color: rgba(255,255,255,0.78);
}

.auth-visual-list {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.auth-visual-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
}
.auth-visual-list svg { flex-shrink: 0; }

/* ----- Mini dashboard preview card (login page) ----- */
.auth-visual-card {
  margin-top: 36px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 12px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  backdrop-filter: blur(6px);
}
.auth-visual-card-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  color: #fff;
}
.auth-visual-card-row span:nth-child(2) {
  flex: 1;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px;
  color: #e2e8f0;
}
.auth-visual-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34d399;
  flex-shrink: 0;
  box-shadow: 0 0 0 0 rgba(52,211,153,0.6);
  animation: auth-pulse 2s infinite;
}
@keyframes auth-pulse {
  0% { box-shadow: 0 0 0 0 rgba(52,211,153,0.55); }
  70% { box-shadow: 0 0 0 6px rgba(52,211,153,0); }
  100% { box-shadow: 0 0 0 0 rgba(52,211,153,0); }
}
.auth-visual-status {
  font-size: 11px;
  font-weight: 700;
  color: #34d399;
  background: rgba(52,211,153,0.15);
  padding: 2px 8px;
  border-radius: 4px;
}

/* ----- Testimonial quote (signup page) ----- */
.auth-visual-quote {
  margin-top: 36px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 12px;
  padding: 20px 22px;
  backdrop-filter: blur(6px);
}
.auth-visual-quote p {
  font-size: 14px;
  line-height: 1.6;
  color: #fff;
  font-style: italic;
}
.auth-visual-author {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}
.auth-visual-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.auth-visual-name {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}
.auth-visual-role {
  font-size: 11.5px;
  color: rgba(255,255,255,0.7);
  margin-top: 1px;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .auth-screen { grid-template-columns: 1fr; }
  .auth-visual-side { display: none; }
  .auth-form-side { padding: 32px 28px; }
}

@media (max-width: 480px) {
  .auth-form-row { grid-template-columns: 1fr; }
  .auth-title { font-size: 24px; }
  .auth-social-row { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  .auth-visual-dot { animation: none; }
}


.auth-phone-group {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}

.auth-phone-group .country-code {
    padding: 0 14px;
    background: #f5f5f5;
    border-right: 1px solid #ddd;
    font-weight: 600;
    white-space: nowrap;
}

.auth-phone-group input {
    border: 0;
    flex: 1;
    padding: 12px 14px;
    outline: none;
}

/* Country Dropdown */
.auth-form select {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    border: 1px solid #d9e2ef;
    border-radius: 10px;
    background: #fff;
    color: #1f2937;
    font-size: 16px;
    font-family: inherit;
    outline: none;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    /* Custom Arrow */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 20 20'%3E%3Cpath fill='%23666' d='M5.5 7.5L10 12l4.5-4.5' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 14px;
}

.auth-form select:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59,130,246,.15);
}