/* DSK Bank style — layout & theme */
:root {
  --green: #4caf50;
  --green-dark: #2e7d32;
  --green-deep: #1b5e20;
  --orange: #ff9800;
  --orange-hover: #f57c00;
  --text: #424242;
  --text-muted: #757575;
  --border: #e0e0e0;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  --radius: 12px;
  --radius-sm: 8px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: #fff;
  line-height: 1.45;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 32px 14px;
  background: #fff;
  border-bottom: 1px solid #eee;
  position: relative;
  z-index: 20;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.logo picture {
  display: contents;
}

.logo-img {
  display: block;
  height: 48px;
  width: auto;
  max-width: min(280px, 70vw);
  object-fit: contain;
  object-position: left center;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  font: inherit;
  font-size: 0.9rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 6px;
}

.lang-switch:hover {
  background: #f5f5f5;
  color: var(--text);
}

.lang-icon {
  font-size: 1rem;
  line-height: 1;
}

/* Hero */
.hero {
  position: relative;
  padding: 28px 24px 120px;
  min-height: 420px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(76, 175, 80, 0.25) 0%, rgba(33, 150, 83, 0.35) 50%, rgba(21, 101, 192, 0.15) 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='0.06'/%3E%3C/svg%3E");
  background-color: #c8e6c9;
  filter: blur(0px);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  backdrop-filter: blur(2px);
  background: linear-gradient(180deg, rgba(200, 230, 201, 0.85) 0%, rgba(165, 214, 167, 0.75) 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 28px;
  align-items: start;
}

.promo-wrap {
  min-width: 0;
}

.promo-banner {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(46, 125, 50, 0.2);
  background: linear-gradient(145deg, #43a047 0%, #2e7d32 42%, #1565c0 100%);
}

.promo-strip {
  background: var(--green-deep);
  color: #fff;
  font-size: 0.8rem;
  padding: 10px 16px;
  text-align: center;
}

.promo-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 16px;
  padding: 20px 20px 24px;
  align-items: end;
}

.promo-visual {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 200px;
}

.promo-img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  object-position: bottom center;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.15));
}

.promo-copy {
  padding-bottom: 8px;
  color: #fff;
}

.promo-headline {
  margin: 0 0 10px;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.promo-sub {
  margin: 0 0 18px;
  font-size: 0.95rem;
  opacity: 0.95;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, transform 0.1s;
}

.btn-orange {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 4px 12px rgba(255, 152, 0, 0.45);
}

.btn-orange:hover {
  background: var(--orange-hover);
}

.btn-outline {
  background: #fff;
  color: var(--green-dark);
  border: 2px solid var(--green);
  border-radius: var(--radius-sm);
  padding: 10px 20px;
  margin-top: 8px;
}

.btn-outline:hover {
  background: #e8f5e9;
}

/* Login card */
.login-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 0 0 20px;
  margin-top: -8px;
}

.login-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
}

.tab {
  flex: 1;
  padding: 14px 12px;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  background: #f5f5f5;
  color: var(--text-muted);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.tab-active {
  background: #fff;
  color: var(--green-dark);
  box-shadow: inset 0 -3px 0 var(--green);
}

.login-form {
  padding: 22px 22px 8px;
}

.field {
  display: block;
  margin-bottom: 16px;
}

.field-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.input {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font: inherit;
  font-size: 0.95rem;
}

.input:focus {
  outline: 2px solid rgba(76, 175, 80, 0.45);
  outline-offset: 1px;
  border-color: var(--green);
}

.recaptcha-wrap {
  display: flex;
  justify-content: center;
  margin: 8px 0 12px;
  min-height: 78px;
}

.recaptcha-wrap .g-recaptcha > div {
  margin: 0 auto;
}

.btn-login {
  width: 100%;
  padding: 12px;
  background: var(--green);
  color: #fff;
  font-size: 1rem;
  border-radius: 4px;
  margin-top: 4px;
}

.btn-login:hover {
  background: var(--green-dark);
}

.login-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px 22px 16px;
  border-top: 1px solid #f0f0f0;
}

.login-links a {
  color: var(--orange);
  font-size: 0.88rem;
  text-decoration: none;
}

.login-links a:hover {
  text-decoration: underline;
}

.login-trust {
  padding: 14px 22px 18px;
  text-align: left;
  border-top: 1px solid #f0f0f0;
}

.trust-line {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  margin: 0 0 12px;
  flex-wrap: wrap;
}

.trust-text {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.trust-info {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  padding: 0;
  border: 1px solid var(--text-muted);
  border-radius: 50%;
  background: #fff;
  color: var(--text-muted);
  font-size: 0.65rem;
  font-weight: 700;
  font-style: italic;
  line-height: 1;
  cursor: pointer;
}

.trust-info:hover {
  border-color: var(--green);
  color: var(--green-dark);
}

.trust-seal {
  display: block;
  max-width: 100%;
  width: auto;
  height: auto;
  max-height: 56px;
  object-fit: contain;
  object-position: left center;
}

/* Content below hero */
.content-below {
  position: relative;
  z-index: 3;
  margin-top: -88px;
  padding: 0 24px 48px;
  background: #fff;
}

.content-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 32px;
  align-items: start;
}

.news-list {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
}

.news-list li {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  padding: 12px 0;
  border-bottom: 1px solid #eee;
  font-size: 0.92rem;
}

.news-list time {
  color: var(--text-muted);
  font-size: 0.88rem;
  min-width: 5.5rem;
}

.news-list a {
  color: var(--text);
  text-decoration: none;
  flex: 1;
  min-width: 200px;
}

.news-list a:hover {
  color: var(--green-dark);
  text-decoration: underline;
}

.side-promo-card {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  border: 1px solid #eee;
  transition: box-shadow 0.2s;
}

.side-promo-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.side-promo-img {
  height: 140px;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, 0.4)),
    linear-gradient(135deg, #81c784 0%, #4caf50 40%, #2e7d32 100%);
  background-blend-mode: normal, normal;
}

.side-promo-text {
  margin: 0;
  padding: 14px 16px;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text);
}

/* Floating buttons */
.float-actions {
  position: fixed;
  bottom: 24px;
  left: 24px;
  right: 24px;
  z-index: 50;
  pointer-events: none;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.fab {
  pointer-events: auto;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: var(--green);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  font-style: italic;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(76, 175, 80, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s, background 0.15s;
}

.fab:hover {
  background: var(--green-dark);
  transform: scale(1.05);
}

.fab-chat-icon {
  width: 22px;
  height: 18px;
  border: 2px solid #fff;
  border-radius: 6px;
  position: relative;
}

.fab-chat-icon::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 6px;
  width: 8px;
  height: 8px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg);
  background: var(--green);
}

@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .login-card {
    margin-top: 0;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
  }

  .promo-body {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .promo-copy {
    text-align: center;
  }

  .content-inner {
    grid-template-columns: 1fr;
  }

  .content-below {
    margin-top: 24px;
  }
}

@media (max-width: 520px) {
  .site-header {
    padding: 10px 16px;
  }

  .hero {
    padding: 16px 16px 100px;
  }

  .promo-headline {
    font-size: 1.2rem;
  }
}

/* Full-page loading (login / SMS) */
body.loading-active {
  overflow: hidden;
}

.loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(4px);
  text-align: center;
}

.loading-overlay.is-visible {
  display: flex;
}

.loading-spinner {
  width: 52px;
  height: 52px;
  border: 4px solid #e8f5e9;
  border-top-color: var(--green);
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.loading-text {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--green-dark);
}

.loading-sub {
  margin: 0;
  max-width: 320px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* SMS & account auth pages */
.auth-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.auth-hero {
  position: relative;
  flex: 1;
  padding: 32px 24px 80px;
  min-height: 420px;
  overflow: hidden;
}

.auth-hero .hero-bg {
  position: absolute;
  inset: 0;
}

.auth-inner {
  position: relative;
  z-index: 2;
  max-width: 440px;
  margin: 0 auto;
  width: 100%;
}

.auth-inner--wide {
  max-width: 480px;
}

.card-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: start;
}

@media (max-width: 520px) {
  .card-row {
    grid-template-columns: 1fr;
  }
}

.input-card-num {
  font-family: ui-monospace, "Cascadia Mono", "Segoe UI Mono", monospace;
  letter-spacing: 0.06em;
}

.card-verify .field {
  margin-bottom: 16px;
}

.field-msg {
  display: none;
  margin-top: 6px;
  font-size: 0.8rem;
  line-height: 1.35;
  color: #c62828;
}

.field-msg:not(:empty) {
  display: block;
}

.login-error-msg {
  margin-top: 10px;
  text-align: left;
}

.input.input-error {
  border-color: #c62828;
}

.input.input-error:focus {
  outline-color: rgba(198, 40, 40, 0.35);
  border-color: #c62828;
}

.input-readonly {
  background: #f5f5f5 !important;
  color: var(--text-muted) !important;
  cursor: default;
}

.input-select {
  appearance: auto;
  cursor: pointer;
  padding-right: 10px;
}

.sms-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 24px 24px;
}

.sms-card-title {
  margin: 0 0 8px;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--green-dark);
}

.sms-card-lead {
  margin: 0 0 20px;
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.sms-code-wrap {
  margin-bottom: 20px;
}

.sms-code-field {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 14px 16px;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  font-family: ui-monospace, "Cascadia Code", "Segoe UI", monospace;
  text-align: center;
}

.sms-code-field::placeholder {
  font-weight: 400;
  letter-spacing: normal;
  font-size: 0.88rem;
  color: var(--text-muted);
  opacity: 0.9;
}

.sms-code-field:focus {
  outline: 2px solid rgba(76, 175, 80, 0.45);
  outline-offset: 1px;
  border-color: var(--green);
}

.sms-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sms-actions .btn-login {
  width: 100%;
}

.sms-card .login-trust {
  margin-top: 24px;
  padding-top: 18px;
}

.sms-resend {
  font-size: 0.88rem;
  color: var(--orange);
  text-decoration: none;
  text-align: center;
}

.sms-resend:hover {
  text-decoration: underline;
}

.link-back {
  display: inline-block;
  margin-top: 20px;
  font-size: 0.88rem;
  color: var(--text-muted);
  text-decoration: none;
  text-align: center;
  width: 100%;
}

.link-back:hover {
  color: var(--green-dark);
  text-decoration: underline;
}

.account-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px 28px;
  text-align: center;
}

.success-card {
  border-top: 4px solid var(--green);
  padding-top: 36px;
}

.success-badge {
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: linear-gradient(155deg, #66bb6a 0%, var(--green) 45%, var(--green-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 28px rgba(46, 125, 50, 0.35);
  color: #fff;
}

.success-check {
  width: 38px;
  height: 38px;
}

.success-kicker {
  margin: 0 0 8px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--green-dark);
}

.success-title {
  margin: 0 0 16px;
  font-size: 1.6rem;
  line-height: 1.25;
  color: var(--green-dark);
}

.success-lead {
  margin: 0 0 14px;
  font-size: 1rem;
  color: var(--text);
  line-height: 1.55;
}

.success-body {
  margin: 0 0 14px;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.success-note {
  margin: 0 0 24px;
  padding: 12px 14px;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
  background: #f1f8e9;
  border-radius: var(--radius-sm);
  border: 1px solid #c8e6c9;
}

.account-card:not(.success-card) h1 {
  margin: 0 0 12px;
  font-size: 1.5rem;
  color: var(--green-dark);
}

.account-card:not(.success-card) p {
  margin: 0 0 20px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.account-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.account-actions .btn-login {
  width: auto;
  padding: 12px 24px;
}

.btn-secondary {
  background: #fff;
  color: var(--green-dark);
  border: 2px solid var(--green);
  border-radius: var(--radius-sm);
  padding: 10px 20px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.btn-secondary:hover {
  background: #e8f5e9;
}
