:root{
  --blue:#137cff;
  --blue-2:#0057ff;
  --cyan:#69c9ff;
  --text:#f8fbff;
  --muted:#a9b8d2;
  --panel:rgba(4,16,36,.78);
  --border:rgba(118,178,255,.28);
  --input:rgba(2,12,28,.52);
}

*{box-sizing:border-box;margin:0;padding:0}

html,body{min-height:100%}

body{
  font-family:"Inter",system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  color:var(--text);
  background:#020714;
  overflow-x:hidden;
}

body::before{
  content:"";
  position:fixed;
  inset:0;
  z-index:-3;
  background-image:url("../img/bg-desktop.png");
  background-size:cover;
  background-position:center center;
  background-repeat:no-repeat;
}

body::after{
  content:"";
  position:fixed;
  inset:0;
  z-index:-2;
  pointer-events:none;
  background:
    radial-gradient(circle at 30% 35%, rgba(0,126,255,.18), transparent 32%),
    linear-gradient(90deg, rgba(0,0,0,.06), rgba(0,0,0,.42) 54%, rgba(0,0,0,.72));
}

.login-page{
  min-height:100vh;
  display:grid;
  grid-template-columns:1fr minmax(390px,520px);
  align-items:center;
  padding:clamp(24px,4vw,70px);
  gap:clamp(28px,4vw,70px);
}

.visual-area{min-height:60vh}

.login-panel{
  width:100%;
  padding:clamp(28px,3vw,46px);
  border:1px solid var(--border);
  border-radius:32px;
  background:
    linear-gradient(180deg, rgba(12,35,68,.72), rgba(3,12,28,.72)),
    var(--panel);
  backdrop-filter:blur(24px);
  -webkit-backdrop-filter:blur(24px);
  box-shadow:
    0 0 0 1px rgba(64,148,255,.08) inset,
    0 0 42px rgba(0,102,255,.12),
    0 30px 90px rgba(0,0,0,.45);
  animation:floatCard 5s ease-in-out infinite;
}

@keyframes floatCard{
  0%,100%{transform:translateY(0)}
  50%{transform:translateY(-6px)}
}

.brand{text-align:center;margin-bottom:34px}

.brand-line{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:16px;
  color:#dcecff;
  letter-spacing:7px;
  font-size:24px;
  font-weight:500;
}

.brand-line span{
  width:100px;
  height:2px;
  background:linear-gradient(90deg,transparent,var(--blue),transparent);
}

.brand-title{
  font-size:clamp(54px,5.2vw,78px);
  line-height:.9;
  font-weight:900;
  letter-spacing:-2px;
  color:#fff;
  text-shadow:0 0 22px rgba(44,139,255,.25);
}

.brand-subtitle{
  margin-top:8px;
  font-size:20px;
  letter-spacing:4px;
  color:#eef5ff;
}

.brand-subtitle b,
.welcome h1 span,
.form-row a{
  color:var(--blue);
  font-weight:500;
}

.welcome{text-align:center;margin-bottom:28px}

.welcome h1{
  font-size:clamp(28px,2.5vw,40px);
  line-height:1.1;
  margin-bottom:10px;
}

.welcome p{color:#d4dfef;font-size:17px}

.form{display:block}

.field{margin-bottom:18px}

.field label{
  display:block;
  margin:0 0 9px;
  font-weight:700;
  font-size:16px;
}

.input-wrap{
  height:62px;
  display:flex;
  align-items:center;
  gap:14px;
  padding:0 18px;
  border-radius:13px;
  border:1px solid rgba(145,178,230,.22);
  background:var(--input);
  transition:.25s ease;
}

.input-wrap:focus-within{
  border-color:rgba(52,142,255,.8);
  box-shadow:0 0 0 4px rgba(19,124,255,.12),0 0 24px rgba(19,124,255,.18);
}

.input-wrap svg{
  width:23px;
  height:23px;
  fill:#9fb0ce;
  flex:0 0 auto;
}

.input-wrap input{
  width:100%;
  height:100%;
  border:none;
  outline:none;
  background:transparent;
  color:#fff;
  font-size:17px;
}

.input-wrap input::placeholder{color:#94a3bd}

.eye-btn{
  border:0;
  background:transparent;
  cursor:pointer;
  padding:4px;
}

.eye-btn svg{fill:#94a3bd}

.form-row{
  /* display:flex; */
  text-align: right !important;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  margin:16px 0 24px;
  font-size:15px;
}

.check{
  display:flex;
  align-items:center;
  gap:10px;
  color:#dbe7f7;
  cursor:pointer;
}

.check input{display:none}

.check span{
  width:22px;
  height:22px;
  border:2px solid var(--blue);
  border-radius:5px;
  box-shadow:0 0 12px rgba(19,124,255,.2);
}

.check input:checked + span{
  background:var(--blue);
  box-shadow:0 0 18px rgba(19,124,255,.55);
}

.form-row a{
  text-decoration:none;
  white-space:nowrap;
}

.primary-btn{
  width:100%;
  height:66px;
  border:none;
  border-radius:13px;
  background:linear-gradient(90deg,#1b8bff,#004cff);
  color:#fff;
  font-size:24px;
  font-weight:700;
  cursor:pointer;
  box-shadow:0 12px 30px rgba(0,86,255,.25),0 0 22px rgba(39,139,255,.2);
  transition:.25s ease;
}

.primary-btn:hover{
  transform:translateY(-2px);
  box-shadow:0 18px 40px rgba(0,86,255,.36),0 0 34px rgba(39,139,255,.32);
}

.primary-btn span{margin-right:18px;font-size:32px;vertical-align:-2px}

.divider{
  display:flex;
  align-items:center;
  gap:18px;
  margin:28px 0 22px;
  color:#a6b4cc;
  font-size:16px;
}

.divider::before,
.divider::after{
  content:"";
  height:1px;
  flex:1;
  background:linear-gradient(90deg,transparent,rgba(172,203,255,.28),transparent);
}

.app-buttons{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
}

.store-btn{
  height:62px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  color:#fff;
  text-decoration:none;
  border:1px solid rgba(145,178,230,.22);
  border-radius:13px;
  background:rgba(2,12,28,.38);
  font-size:20px;
  font-weight:700;
  transition:.25s ease;
}

.store-btn:hover{
  border-color:rgba(52,142,255,.65);
  box-shadow:0 0 18px rgba(19,124,255,.18);
}

.store-btn svg{
  width:28px;
  height:28px;
  fill:#fff;
}

.store-btn.ios{
  font-size:26px;
  font-weight:900;
}

.secure{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:9px;
  margin-top:25px;
  color:#9fb0ca;
  font-size:15px;
}

.secure svg{
  width:20px;
  height:20px;
  fill:#9fb0ca;
}

@media (max-width: 900px){
  body{
    min-height:100svh;
    overflow:auto;
  }

  body::before{
    background-image:url("../img/bg-mobile.png");
    background-size:cover;
    background-position:center top;
  }

  body::after{
    background:
      linear-gradient(180deg, rgba(0,0,0,.06), rgba(0,0,0,.12) 34%, rgba(0,0,0,.4) 54%, rgba(0,0,0,.72));
  }

  .login-page{
    display:flex;
    min-height:100svh;
    align-items:flex-end;
    justify-content:center;
    padding:22vh 18px 26px;
  }

  .visual-area{display:none}

  .login-panel{
    max-width:620px;
    border-radius:26px;
    padding:28px 22px 26px;
    animation:none;
  }

  .brand-line{font-size:20px;letter-spacing:5px}
  .brand-line span{width:76px}
  .brand-title{font-size:52px}
  .brand-subtitle{font-size:15px;letter-spacing:3px}

  .welcome h1{font-size:30px}
  .welcome p{font-size:16px}

  .input-wrap{height:58px}
  .form-row{font-size:14px;align-items:flex-start}
  .primary-btn{height:62px;font-size:22px}
}

@media (max-width: 420px){
  .login-page{padding-inline:12px}
  .login-panel{padding:24px 18px;border-radius:24px}
  .brand-title{font-size:44px}
  .brand-subtitle{font-size:13px;letter-spacing:2px}
  .brand-line span{width:54px}
  .app-buttons{gap:10px}
  .store-btn{font-size:17px}
}

.input-wrap input:-webkit-autofill,
.input-wrap input:-webkit-autofill:hover,
.input-wrap input:-webkit-autofill:focus{
    -webkit-text-fill-color: #ffffff !important;
    -webkit-box-shadow:
        0 0 0 1000px rgba(2,12,28,.52) inset !important;
    border-radius: inherit;
    transition: background-color 5000s ease-in-out 0s;
}

.login-message{
  display:none;
  margin-bottom:18px;
  padding:14px;
  border-radius:12px;
  font-size:15px;
  font-weight:600;
  text-align:center;
}

.login-message.error{
  background: #66000a59;
  border: 1px solid #e7001a;
  color: #ffffff;
}

.login-message.success{
  background:#0f3824;
  border:1px solid #2ecc71;
  color:#bff7d5;
}