/* Страница входа. Значения перенесены из docs/Сбер.Сфера_ страница входа/Авторизация.dc.html */

html, body { margin: 0; padding: 0; background: #05120c; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
a { color: #7fd3a4; text-decoration: none; }
a:hover { color: #bfe9d3; }
input:focus { outline: none; }
::placeholder { color: rgba(215, 236, 226, 0.38); }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes toastIn { from { opacity: 0; transform: translateX(28px) scale(0.97); } to { opacity: 1; transform: translateX(0) scale(1); } }
@keyframes toastOut { from { opacity: 1; transform: translateX(0) scale(1); } to { opacity: 0; transform: translateX(28px) scale(0.97); } }
@keyframes lavaA { 0% { transform: translate(-12%, -6%) scale(1); } 50% { transform: translate(18%, 12%) scale(1.25); } 100% { transform: translate(-12%, -6%) scale(1); } }
@keyframes lavaB { 0% { transform: translate(14%, 10%) scale(1.15); } 50% { transform: translate(-16%, -14%) scale(0.9); } 100% { transform: translate(14%, 10%) scale(1.15); } }
@keyframes lavaC { 0% { transform: translate(0%, 14%) scale(0.95); } 50% { transform: translate(10%, -12%) scale(1.3); } 100% { transform: translate(0%, 14%) scale(0.95); } }

.page {
  position: relative;
  min-height: 100vh;
  width: 100%;
  overflow: hidden;
  background: #05120c;
  font-family: 'Golos Text', 'Helvetica Neue', Helvetica, sans-serif;
  color: #eaf3ee;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
}

.lava-layers { position: absolute; inset: 0; overflow: hidden; z-index: 0; }
.blob { position: absolute; border-radius: 50%; }
.blob-a {
  width: 70vmax; height: 70vmax; left: -10vmax; top: -18vmax;
  background: radial-gradient(circle at 50% 50%, #1f9d5f 0%, rgba(31,157,95,0) 65%);
  filter: blur(40px);
  animation: lavaA 26s ease-in-out infinite;
}
.blob-b {
  width: 62vmax; height: 62vmax; right: -14vmax; bottom: -20vmax;
  background: radial-gradient(circle at 50% 50%, #0d6b52 0%, rgba(13,107,82,0) 68%);
  filter: blur(50px);
  animation: lavaB 34s ease-in-out infinite;
}
.blob-c {
  width: 48vmax; height: 48vmax; left: 30vmax; bottom: -12vmax;
  background: radial-gradient(circle at 50% 50%, #7fd3a4 0%, rgba(127,211,164,0) 70%);
  filter: blur(60px);
  opacity: 0.55;
  animation: lavaC 30s ease-in-out infinite;
}

.lava-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; display: block; }

.vignette {
  position: absolute; inset: 0; z-index: 2;
  background: radial-gradient(120% 90% at 50% 45%, rgba(5,18,12,0) 0%, rgba(5,18,12,0.55) 70%, rgba(5,18,12,0.85) 100%);
  pointer-events: none;
}

.toasts {
  position: fixed; top: 24px; right: 24px; z-index: 20;
  display: flex; flex-direction: column; align-items: flex-end; gap: 10px;
  max-width: min(380px, calc(100vw - 48px));
  pointer-events: none;
}
.toast {
  width: 100%; max-width: 460px;
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 14px 14px 16px;
  border-radius: 14px;
  background: rgba(38, 14, 14, 0.72);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid rgba(240, 160, 160, 0.34);
  box-shadow: 0 18px 44px rgba(0,0,0,0.45);
  color: #ffdede;
  font-size: 14px;
  line-height: 1.45;
  animation: toastIn 0.28s cubic-bezier(0.22,1,0.36,1);
}
.toast.is-leaving { animation: toastOut 0.24s ease forwards; }
.toast-icon {
  width: 20px; height: 20px; border-radius: 50%;
  background: rgba(255, 120, 120, 0.22);
  border: 1px solid rgba(255, 160, 160, 0.5);
  color: #ffd2d2; font-size: 13px; font-weight: 700;
  display: grid; place-items: center; flex: none; margin-top: 1px;
}
.toast-message { flex: 1; min-width: 0; }
.toast-count {
  flex: none; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px;
  background: rgba(255, 160, 160, 0.18); color: #ffd2d2; font-size: 12px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
}
.toast-close {
  border: none; background: transparent; color: rgba(255, 220, 220, 0.6);
  font-family: inherit; font-size: 16px; line-height: 1; cursor: pointer;
  padding: 2px 4px; pointer-events: auto;
}
.toast-close:hover { color: #fff; }

.column { position: relative; z-index: 3; width: 100%; max-width: 452px; display: flex; flex-direction: column; gap: 26px; }

.brand { display: flex; align-items: center; gap: 13px; }
.brand-mark { position: relative; width: 46px; height: 46px; flex: none; }
.brand-glow {
  position: absolute; inset: -6px; border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(47,179,106,0.35) 0%, rgba(47,179,106,0) 70%);
}
.mark-canvas { position: relative; width: 46px; height: 46px; display: block; }
.brand-title { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
.brand-accent { color: #7fd3a4; }

.card {
  border-radius: 24px;
  border: 1px solid rgba(174, 226, 200, 0.16);
  background: rgba(8, 26, 18, 0.55);
  backdrop-filter: blur(26px) saturate(140%);
  -webkit-backdrop-filter: blur(26px) saturate(140%);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  padding: 34px 32px 30px;
  display: flex; flex-direction: column; gap: 24px;
}

.card-head { display: flex; flex-direction: column; gap: 8px; }
.card-title { font-size: 27px; font-weight: 600; letter-spacing: -0.02em; }
.card-sub { font-size: 14.5px; color: rgba(212, 229, 219, 0.66); line-height: 1.5; }

.login-form { display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field-label { font-size: 13px; font-weight: 500; color: rgba(212, 229, 219, 0.72); }
.field-input {
  height: 50px; width: 100%;
  border-radius: 13px;
  border: 1px solid rgba(174, 226, 200, 0.22);
  background: rgba(255,255,255,0.05);
  padding: 0 14px;
  font-family: inherit;
  font-size: 15px;
  color: #eaf3ee;
  transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}
.field-input:focus {
  border-color: #2fb36a;
  background: rgba(47,179,106,0.10);
  box-shadow: 0 0 0 4px rgba(47,179,106,0.18);
}
.field-input--password { padding-right: 92px; }
.password-wrap { position: relative; display: flex; }
.pass-toggle {
  position: absolute; right: 6px; top: 6px;
  height: 38px; padding: 0 12px;
  border: none; border-radius: 9px;
  background: transparent;
  color: rgba(212, 229, 219, 0.7);
  font-family: inherit; font-size: 13px; font-weight: 500;
  cursor: pointer;
}
.pass-toggle:hover { background: rgba(255,255,255,0.08); color: #fff; }

.row-between { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.remember { display: flex; align-items: center; gap: 9px; font-size: 14px; color: rgba(212, 229, 219, 0.78); cursor: pointer; }
.remember-box { width: 17px; height: 17px; accent-color: #2fb36a; cursor: pointer; }
.submit {
  height: 52px;
  border: none; border-radius: 14px;
  background: #1f9d5f;
  color: #fff;
  font-family: inherit; font-size: 16px; font-weight: 600;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  box-shadow: 0 10px 30px rgba(31,157,95,0.35);
}
.submit[disabled] { background: rgba(47,179,106,0.6); cursor: default; }
.spinner {
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.35);
  border-top-color: #fff;
  display: inline-block;
  animation: spin 0.7s linear infinite;
}

/* Режим детерминированного снимка: анимации остановлены, кадр фиксируется скриптом */
.vt-frozen .blob,
.vt-frozen .toast,
.vt-frozen .spinner { animation: none !important; }
