:root{
  --bg1:#ff5a4a;
  --bg2:#ff6f56;
  --bg3:#ff865d;
  --text:#1f1f1f;
  --muted:#9aa0a6;
  --border:#d8d8d8;
  --panel-radius:48px;
  --primary:#ffb6a4;
  --primary-2:#ff9f8b;
  --green:#3bb54a;
  --green-2:#2fa83f;
}

html, body{
  height:100%;
}

body{
  margin:0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, Arial, sans-serif;
  background: #fff;
}

.app{
  min-height:100vh;
  width:100%;
  display:flex;
  flex-direction:column;
  align-items:center;
  position:relative;
  overflow:hidden;
  background:
    radial-gradient(150% 95% at 10% -15%, rgba(255,190,110,0.45) 0%, rgba(255,190,110,0.0) 56%),
    radial-gradient(120% 80% at 105% 20%, rgba(255,130,108,0.28) 0%, rgba(255,130,108,0.0) 58%),
    linear-gradient(180deg, var(--bg1) 0%, var(--bg2) 50%, var(--bg3) 100%);
}

.app::before,
.app::after{
  content:"";
  position:absolute;
  border-radius:50%;
  pointer-events:none;
}

.app::before{
  width:520px;
  height:360px;
  left:-220px;
  top:40px;
  background:rgba(255,174,76,0.22);
}

.app::after{
  width:520px;
  height:420px;
  right:-220px;
  top:110px;
  background:rgba(255,110,88,0.24);
}

/* Make it look like a phone screen without assuming a wrapper */
.top{
  width:100%;
  max-width:440px;
  padding:24px 24px 0;
  color:#fff;
  position:relative;
  z-index:1;
}

.brand-row{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
}

.logo{
  display:flex;
  align-items:center;
  gap:10px;
}

.logo-mark{
  flex:0 0 auto;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.12));
  width:50px;
  height:50px;
  object-fit:contain;
}

.brand-text{
  font-size:74px;
  font-weight:700;
  line-height:0.9;
  letter-spacing:-1.4px;
  transform:translateY(2px);
  color:#fff;
  -webkit-text-stroke: 1px rgba(255,255,255,0.65);
  text-shadow: 0 2px 6px rgba(0,0,0,0.11);
  font-family: "Brush Script MT", "Snell Roundhand", "Segoe Script", cursive;
}

.tag{
  margin-top:22px;
  padding:7px 17px;
  border-radius:999px;
  background: rgba(255,255,255,0.28);
  color: rgba(255,255,255,0.95);
  font-weight:800;
  font-size:12px;
  letter-spacing:0.2px;
  white-space:nowrap;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
}

.stats{
  margin-top:12px;
  display:flex;
  flex-direction:column;
  gap:12px;
}

.stat{
  padding:8px 14px;
  border-radius:999px;
  background: rgba(255,255,255,0.24);
  font-weight:800;
  font-size:11px;
  letter-spacing:0.2px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
}

.stat-users{
  align-self:flex-start;
  margin-left:4px;
}

.stat-online{
  align-self:flex-end;
  margin-right:4px;
}

.panel{
  width:100%;
  max-width:440px;
  flex:1;
  background:#fff;
  border-top-left-radius: var(--panel-radius);
  border-top-right-radius: var(--panel-radius);
  margin-top:14px;
  padding:30px 20px 44px;
  box-shadow: 0 -20px 40px rgba(0,0,0,0.06);
  position:relative;
  z-index:1;
}

.auth{
  display:flex;
  flex-direction:column;
  gap:14px;
}

.field{
  border:1px solid var(--border);
  border-radius:16px;
  padding:15px 16px;
  background:#fff;
  display:flex;
  align-items:center;
}

.field input{
  border:none;
  outline:none;
  width:100%;
  font-size:18px;
  color: var(--text);
  background: transparent;
}

/* Хук для детекта встроенного autofill: короткая анимация при :-webkit-autofill / :autofill */
@keyframes taborAutoFillStart {
  from {
    opacity: 1;
  }
  to {
    opacity: 0.999;
  }
}

.field input:-webkit-autofill,
.field input:-webkit-autofill:hover,
.field input:-webkit-autofill:focus,
.field input:-webkit-autofill:active{
  animation-name: taborAutoFillStart;
  animation-duration: 0.001s;
  animation-fill-mode: both;
}

.field input:autofill,
.field input:autofill:hover,
.field input:autofill:focus{
  animation-name: taborAutoFillStart;
  animation-duration: 0.001s;
  animation-fill-mode: both;
}

.field input::placeholder{
  color: #b6bbc1;
  font-weight:700;
}

.field-password{
  position:relative;
  padding-right:56px;
}

.eye{
  position:absolute;
  top:50%;
  right:14px;
  transform:translateY(-50%);
  border:none;
  background:transparent;
  padding:0;
  width:36px;
  height:36px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
}

.eye:active{
  background: rgba(0,0,0,0.04);
}

.row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-top:2px;
  margin-bottom:4px;
}

.check{
  display:flex;
  align-items:center;
  gap:10px;
  font-size:15px;
  font-weight:600;
  color:#6b6f74;
  cursor:pointer;
}

.check input{
  width:22px;
  height:22px;
  accent-color: #ff7a5f;
}

.forgot{
  font-size:15px;
  font-weight:700;
  color:#6f747a;
  text-decoration:none;
}

.btn{
  width:100%;
  border-radius:999px;
  padding:16px 18px;
  font-size:19px;
  font-weight:800;
  border:2px solid transparent;
  cursor:pointer;
}

.btn-primary{
  background: linear-gradient(180deg, var(--primary) 0%, var(--primary-2) 100%);
  color:#fff;
}

.btn-secondary{
  background:#fff;
  border-color: var(--green);
  color: var(--green);
}

.fineprint{
  margin-top:34px;
  text-align:center;
}

.fineprint-text{
  margin:0;
  color:#7a7f85;
  font-size:13px;
  line-height:1.35;
  font-weight:600;
}

.fineprint-link{
  color:#5f666f;
  font-weight:800;
  text-decoration:none;
}

.copyright{
  margin-top:18px;
  color:#6f747a;
  font-size:13px;
  font-weight:700;
}

.copyright-link{
  margin-left:10px;
  color:#4b525a;
  text-decoration:none;
  font-weight:900;
}

.behavior-preview{
  margin-top:20px;
  padding:12px 14px;
  border-radius:12px;
  background:#f4f5f6;
  text-align:left;
  cursor:pointer;
  -webkit-tap-highlight-color: transparent;
}

.behavior-preview-empty{
  margin:0;
  color:#9aa0a6;
  font-size:12px;
  font-weight:600;
}

.behavior-preview-list{
  margin:0;
  padding:0;
  list-style:none;
  display:flex;
  flex-direction:column;
  gap:8px;
}

.behavior-preview-list li{
  margin:0;
  padding:0;
  font-size:11px;
  line-height:1.35;
  word-break:break-all;
}

.behavior-preview-list code{
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  color:#3a3f44;
}

.home-indicator{
  position:fixed;
  left:50%;
  bottom:8px;
  transform:translateX(-50%);
  width:160px;
  height:6px;
  background:#0b0b0b;
  border-radius:999px;
  opacity:0.9;
  pointer-events:none;
}

@media (max-width: 380px){
  .top{ padding-left:16px; padding-right:16px; }
  .logo-mark{ width:46px; height:46px; }
  .brand-text{ font-size:64px; }
  .tag{ margin-top:20px; }
  .panel{ padding-left:16px; padding-right:16px; }
  .field input{ font-size:17px; }
}

