.login-page {
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  background: #07080c;
  color: #e7e9f0;
}

.login-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #050608;
  pointer-events: none;
}

.login-bg__photo {
  position: absolute;
  inset: -4%;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  transform: scale(1.06);
  animation: login-bg-drift 32s ease-in-out infinite alternate;
  filter: saturate(1.08) contrast(1.05);
}

.login-bg__vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 80% at 50% 45%, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.82) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.25) 40%, rgba(0, 0, 0, 0.65) 100%);
}

.login-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 15%, transparent 78%);
  opacity: 0.4;
}

.login-bg__float {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  display: none;
}

.login-bg__sym {
  position: absolute;
  font-family: "Space Grotesk", Georgia, serif;
  font-weight: 800;
  line-height: 1;
  opacity: 0.07;
  text-shadow: 0 0 40px rgba(212, 175, 95, 0.35);
  animation: login-symbol-float 18s ease-in-out infinite;
}

.login-bg__sym--usd {
  top: 12%;
  left: 8%;
  font-size: clamp(4rem, 12vw, 7rem);
  color: #34d399;
  animation-delay: 0s;
}

.login-bg__sym--eur {
  top: 18%;
  right: 10%;
  font-size: clamp(3.5rem, 10vw, 6rem);
  color: #60a5fa;
  animation-delay: -4s;
}

.login-bg__sym--gold {
  bottom: 22%;
  left: 14%;
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  color: #d4af5f;
  animation-delay: -8s;
}

.login-bg__sym--try {
  bottom: 16%;
  right: 18%;
  font-size: clamp(3rem, 9vw, 5.5rem);
  color: #f87171;
  animation-delay: -2s;
}

.login-bg__sym--gbp {
  top: 42%;
  right: 6%;
  font-size: clamp(2.8rem, 8vw, 5rem);
  color: #a78bfa;
  animation-delay: -11s;
}

@keyframes login-bg-drift {
  0% {
    transform: scale(1.04) translate(0, 0);
  }
  100% {
    transform: scale(1.08) translate(-1.2%, -0.8%);
  }
}

@keyframes login-symbol-float {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
    opacity: 0.06;
  }
  50% {
    transform: translateY(-12px) rotate(2deg);
    opacity: 0.1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .login-bg__photo,
  .login-bg__sym {
    animation: none;
  }
}

.login-shell {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 100vh;
  min-height: 100dvh;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem;
  box-sizing: border-box;
}

.login-card {
  position: relative;
  width: 100%;
  max-width: 420px;
  padding: 0;
  border-radius: 1.35rem;
  border: 1px solid rgba(212, 175, 95, 0.28);
  background: linear-gradient(165deg, rgba(14, 14, 18, 0.94) 0%, rgba(6, 7, 11, 0.96) 100%);
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 0 100px rgba(212, 175, 95, 0.08);
  backdrop-filter: blur(20px);
  overflow: hidden;
}

.login-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, #d4af5f, transparent);
}

.login-card-inner {
  padding: 1.75rem 1.5rem 1.5rem;
}

@media (min-width: 420px) {
  .login-card-inner {
    padding: 2rem 1.85rem 1.75rem;
  }
}

.login-brand-wrap {
  text-align: center;
  margin-bottom: 1.35rem;
}

.login-form-title {
  margin: 0 0 1rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
  text-align: center;
}

.login-field-label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
}

.login-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.1rem 0 0.85rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.32);
}

.login-divider::before,
.login-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.login-tagline {
  margin: 0.65rem 0 0;
  font-size: 0.8125rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(212, 175, 95, 0.75);
  font-weight: 600;
}

.cb-brand {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.05;
  user-select: none;
}

.cb-brand__row {
  display: flex;
  align-items: baseline;
  gap: 0;
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.cb-brand__casa {
  color: #fff;
}

.cb-brand__blanca {
  background: linear-gradient(135deg, #f5e6c8 0%, #d4af5f 45%, #a8842a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.cb-brand__panel {
  margin-top: 0.15em;
  font-size: 0.42em;
  font-weight: 700;
  letter-spacing: 0.38em;
  text-indent: 0.38em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.cb-brand--login .cb-brand__row {
  font-size: clamp(2.25rem, 8vw, 2.85rem);
}

.cb-brand--sidebar .cb-brand__row {
  font-size: 1.85rem;
}

.cb-brand--sidebar .cb-brand__panel {
  font-size: 0.38em;
}

.cb-brand--mobile .cb-brand__row {
  font-size: 1.15rem;
}

.cb-brand--mobile {
  flex-direction: row;
  align-items: baseline;
  gap: 0.35rem;
}

.cb-brand--mobile .cb-brand__panel {
  margin-top: 0;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-indent: 0;
}

.login-field-group {
  margin-bottom: 0.85rem;
}

.login-field {
  display: block;
  width: 100%;
  height: 3rem;
  margin-bottom: 0;
  padding: 0 1rem;
  border-radius: 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  box-sizing: border-box;
}

.login-field::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.login-field:focus {
  border-color: rgba(212, 175, 95, 0.55);
  box-shadow: 0 0 0 3px rgba(212, 175, 95, 0.12);
}

.login-btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 3.1rem;
  margin-top: 0.35rem;
  border: 0;
  border-radius: 0.65rem;
  background: linear-gradient(135deg, #f0e2c4 0%, #d4af5f 50%, #b8923a 100%);
  color: #1a1408;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: filter 0.15s, transform 0.1s;
}

.login-btn-primary:hover {
  filter: brightness(1.06);
}

.login-btn-primary:active {
  transform: scale(0.99);
}

.login-btn-telegram {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  height: 2.85rem;
  margin-top: 0.65rem;
  border-radius: 0.65rem;
  border: 1px solid rgba(34, 158, 217, 0.45);
  background: rgba(34, 158, 217, 0.12);
  color: #7dd3fc;
  font-size: 0.9375rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
}

.login-btn-telegram:hover {
  background: rgba(34, 158, 217, 0.22);
  border-color: rgba(34, 158, 217, 0.65);
}

.login-error {
  min-height: 1.25rem;
  margin-top: 0.75rem;
  text-align: center;
  font-size: 0.875rem;
  color: #f87171;
}

.login-info {
  display: block;
  color: rgba(212, 175, 95, 0.95);
}

.login-pending {
  text-align: center;
  color: #fff;
}

.login-pending p {
  margin: 0 0 0.75rem;
}

.login-pending-muted {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
}

.login-pending-countdown {
  margin: 0.35rem 0 0.65rem;
  font-size: 1.125rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
  color: rgba(212, 175, 95, 0.95);
}

.login-pending-countdown.is-low {
  color: #f87171;
}

.login-cancel {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.45);
}

.login-btn-spin {
  display: none;
}

.login-btn-spin.is-visible {
  display: flex;
}

.login-pending .flex {
  display: flex;
}

.login-pending .justify-center {
  justify-content: center;
}

.login-pending .py-4 {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.hidden {
  display: none !important;
}

.login-btn-label.is-hidden {
  display: none;
}
