/* ============================================================
   Alan Ross Forex — Sberbank-inspired login page
   Scope: .sber-page (login page only)
   ============================================================ */

/* ── Reset for login page ─────────────────────────────────── */
body {
  margin: 0;
  padding: 0;
  background: #F7F9FC !important;
}

/* ── Page wrapper ─────────────────────────────────────────── */
.sber-page {
  background: #F7F9FC;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 20px 60px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  color: #1A1A1A;
  box-sizing: border-box;
}

.sber-page *,
.sber-page *::before,
.sber-page *::after {
  box-sizing: border-box;
}

/* ── Brand block ──────────────────────────────────────────── */
.sber-brand {
  text-align: center;
  margin-bottom: 28px;
}

.sber-brand-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #21A038;
  color: #ffffff;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 1.5px;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  margin-bottom: 14px;
  box-shadow: 0 4px 16px rgba(33, 160, 56, 0.30);
}

.sber-brand h2 {
  font-size: 20px;
  font-weight: 700;
  color: #1A1A1A;
  margin: 0 0 4px;
  letter-spacing: -0.3px;
  line-height: 1.2;
}

.sber-brand p {
  font-size: 13px;
  color: #888;
  margin: 0;
}

/* ── Card ─────────────────────────────────────────────────── */
.sber-card {
  background: #FFFFFF;
  border-radius: 20px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.09), 0 1px 4px rgba(0, 0, 0, 0.04);
  padding: 40px 40px 36px;
  width: 100%;
  max-width: 460px;
}

.sber-card-title {
  font-size: 26px;
  font-weight: 700;
  color: #1A1A1A;
  margin: 0 0 6px;
  line-height: 1.2;
  letter-spacing: -0.4px;
}

.sber-card-subtitle {
  font-size: 14px;
  color: #666;
  margin: 0 0 28px;
  line-height: 1.5;
}

/* ── Form group & labels ──────────────────────────────────── */
.sber-form-group {
  margin-bottom: 20px;
}

.sber-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #444;
  margin-bottom: 8px;
  line-height: 1;
}

.sber-label a {
  color: #21A038;
  font-size: 12px;
  font-weight: 400;
  text-decoration: none;
  margin-left: auto;
  white-space: nowrap;
}

.sber-label a:hover {
  text-decoration: underline;
}

/* ── Inputs ───────────────────────────────────────────────── */
.sber-input {
  display: block;
  width: 100%;
  height: 52px;
  border: 1.5px solid #DDE3EA;
  border-radius: 12px;
  padding: 0 16px;
  font-size: 15px;
  font-family: inherit;
  color: #1A1A1A;
  background: #FAFBFC;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.sber-input:focus {
  border-color: #21A038;
  box-shadow: 0 0 0 3px rgba(33, 160, 56, 0.12);
  background: #ffffff;
}

.sber-input::placeholder {
  color: #B8C2CC;
}

/* ── Buttons ──────────────────────────────────────────────── */
.sber-btn {
  display: block;
  width: 100%;
  height: 52px;
  background: #21A038;
  color: #ffffff;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.10s ease, box-shadow 0.18s ease;
  margin-top: 8px;
  text-decoration: none;
  text-align: center;
  line-height: 52px;
  padding: 0;
  letter-spacing: 0.1px;
  box-shadow: 0 4px 16px rgba(33, 160, 56, 0.25);
}

.sber-btn:hover {
  background: #1a8030;
  box-shadow: 0 6px 20px rgba(33, 160, 56, 0.35);
  color: #ffffff;
  text-decoration: none;
}

.sber-btn:active {
  transform: scale(0.985);
  box-shadow: none;
}

.sber-btn-outline {
  background: transparent;
  color: #21A038;
  border: 2px solid #21A038;
  box-shadow: none;
}

.sber-btn-outline:hover {
  background: rgba(33, 160, 56, 0.06);
  color: #21A038;
  box-shadow: none;
}

/* ── reCAPTCHA ────────────────────────────────────────────── */
.sber-recaptcha {
  margin: 4px 0 20px;
}

/* ── Error / info alerts ──────────────────────────────────── */
.sber-error {
  background: #FFF5F5;
  border: 1px solid #FFCDD2;
  border-radius: 10px;
  padding: 12px 16px;
  color: #C62828;
  font-size: 14px;
  margin: 4px 0 16px;
  line-height: 1.5;
}

.sber-info-alert {
  background: #F0F9F2;
  border: 1px solid #A5D6B0;
  border-radius: 10px;
  padding: 12px 16px;
  color: #1B5E20;
  font-size: 14px;
  margin-bottom: 20px;
  line-height: 1.5;
}

/* ── Bottom links ─────────────────────────────────────────── */
.sber-links {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #F0F0F0;
}

.sber-links a {
  font-size: 14px;
  color: #21A038;
  text-decoration: none;
}

.sber-links a:hover {
  text-decoration: underline;
}

/* ── Ask-user page (choose action) ───────────────────────── */
.sber-choose {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sber-divider {
  text-align: center;
  color: #B0B8C1;
  font-size: 13px;
  position: relative;
  padding: 4px 0;
}

.sber-divider::before,
.sber-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 42%;
  height: 1px;
  background: #E8ECF0;
}

.sber-divider::before { left: 0; }
.sber-divider::after  { right: 0; }

/* ── Help footer link ─────────────────────────────────────── */
.sber-help {
  text-align: center;
  margin-top: 24px;
  font-size: 13px;
  color: #999;
}

.sber-help a {
  color: #21A038;
  text-decoration: none;
}

.sber-help a:hover {
  text-decoration: underline;
}

/* ── Fancybox popup content ───────────────────────────────── */
.sber-popup-content {
  background: #ffffff;
  border-radius: 16px;
  padding: 32px 32px 28px;
  max-width: 480px;
  width: 90vw;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.sber-popup-content h3 {
  font-size: 18px;
  font-weight: 700;
  color: #1A1A1A;
  margin: 0 0 16px;
  letter-spacing: -0.3px;
}

.sber-popup-content p {
  font-size: 14px;
  line-height: 1.6;
  color: #444;
  margin: 0 0 12px;
}

.sber-popup-content p:last-child {
  margin-bottom: 0;
}

.sber-popup-content strong {
  color: #1A1A1A;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 520px) {
  .sber-card {
    padding: 28px 22px 26px;
    border-radius: 16px;
  }

  .sber-card-title {
    font-size: 22px;
  }

  .sber-brand-logo {
    width: 48px;
    height: 48px;
    font-size: 17px;
  }
}

/* ── Choice cards (ask_user screen) ──────────────────────── */
.sber-choice-card {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  background: #F7F9FC;
  border: 1.5px solid #DDE3EA;
  border-radius: 14px;
  padding: 18px 20px;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  font-family: inherit;
  color: inherit;
  margin-top: 0;
  height: auto;
  line-height: normal;
  box-shadow: none;
}

.sber-choice-card:hover {
  border-color: #21A038;
  box-shadow: 0 4px 16px rgba(33, 160, 56, 0.12);
  background: #F0F9F2;
}

.sber-choice-card:active {
  transform: scale(0.99);
}

.sber-choice-card--secondary {
  background: #ffffff;
}

.sber-choice-icon {
  font-size: 22px;
  color: #21A038;
  flex-shrink: 0;
  width: 36px;
  text-align: center;
  line-height: 1;
  font-weight: 600;
}

.sber-choice-body {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
}

.sber-choice-title {
  font-size: 16px;
  font-weight: 600;
  color: #1A1A1A;
  line-height: 1.2;
}

.sber-choice-hint {
  font-size: 13px;
  color: #666;
  line-height: 1.45;
}

.sber-choice-arrow {
  font-size: 22px;
  color: #B8C2CC;
  flex-shrink: 0;
  transition: color 0.18s ease;
  line-height: 1;
}

.sber-choice-card:hover .sber-choice-arrow {
  color: #21A038;
}
