*{
  box-sizing:border-box;
}

body{
  margin:0;
  font-family:Inter,Arial,sans-serif;
  color:white;
  min-height:100vh;
  overflow-x:hidden;
  overflow-y:auto;
  background:
    radial-gradient(circle at 18% 18%,rgba(141,189,255,.22),transparent 30%),
    radial-gradient(circle at 82% 22%,rgba(183,166,255,.20),transparent 28%),
    radial-gradient(circle at 50% 90%,rgba(115,255,191,.12),transparent 34%),
    linear-gradient(180deg,#03060c,#08111d);
}

body::before{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  background:
    linear-gradient(rgba(255,255,255,.025) 1px,transparent 1px),
    linear-gradient(90deg,rgba(255,255,255,.025) 1px,transparent 1px);
  background-size:42px 42px;
  mask-image:radial-gradient(circle at center,black 34%,transparent 86%);
}

body::after{
  content:"";
  position:fixed;
  width:620px;
  height:620px;
  right:-180px;
  top:-160px;
  border-radius:50%;
  background:linear-gradient(135deg,#8dbdff,#b7a6ff,#73ffbf);
  filter:blur(95px);
  opacity:.22;
  animation:authAurora 9s ease-in-out infinite alternate;
}

.auth-page{
  min-height:100vh;
  display:grid;
  place-items:center;
  padding:24px;
  position:relative;
}

.auth-page::before,
.auth-page::after{
  content:"";
  position:absolute;
  width:10px;
  height:10px;
  border-radius:50%;
  background:#fff;
  box-shadow:
    0 0 24px rgba(255,255,255,.8),
    0 0 44px rgba(141,189,255,.7);
  opacity:.7;
  animation:floatDot 6s ease-in-out infinite;
}

.auth-page::before{
  left:18%;
  top:22%;
}

.auth-page::after{
  right:20%;
  bottom:24%;
  animation-delay:2s;
}

.auth-card{
  width:min(470px,calc(100% - 20px));
  padding:42px;
  border-radius:38px;
  position:relative;
  overflow:hidden;
  background:
    linear-gradient(180deg,rgba(255,255,255,.105),rgba(255,255,255,.045));
  border:1px solid rgba(255,255,255,.15);
  backdrop-filter:blur(34px);
  -webkit-backdrop-filter:blur(34px);
  box-shadow:
    0 50px 140px rgba(0,0,0,.58),
    inset 0 1px 0 rgba(255,255,255,.16);
}

.auth-card::after{
  content:"AES-256-GCM Protected · Syntia Secure";
  display:inline-flex;
  margin-top:18px;
  min-height:34px;
  padding:0 12px;
  align-items:center;
  border-radius:999px;
  color:#dbe4f0;
  font-size:.72rem;
  font-weight:900;
  letter-spacing:.08em;
  text-transform:uppercase;
  border:1px solid rgba(255,255,255,.11);
  background:rgba(255,255,255,.045);
}

.auth-card h1{
  margin:0;
  font-size:2.75rem;
  line-height:.95;
  letter-spacing:-.07em;
  font-weight:900;
  background:linear-gradient(90deg,#fff,#dbe7ff,#b7a6ff);
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
}

.auth-card p{
  color:#aeb8c8;
  line-height:1.75;
  margin:14px 0 22px;
  font-weight:600;
}

.auth-card input,
.auth-card button{
  width:100%;
  height:58px;
  margin-top:14px;
  border-radius:18px;
  padding:0 18px;
  font:inherit;
  outline:none;
}

.auth-card input{
  color:white;
  background:rgba(255,255,255,.065);
  border:1px solid rgba(255,255,255,.13);
  transition:.28s ease;
}

.auth-card input::placeholder{
  color:rgba(219,228,240,.55);
}

.auth-card input:focus{
  border-color:rgba(141,189,255,.58);
  background:rgba(255,255,255,.085);
  box-shadow:
    0 0 0 5px rgba(141,189,255,.08),
    0 0 28px rgba(141,189,255,.10);
}

.auth-card button{
  border:none;
  font-weight:900;
  cursor:pointer;
  transition:.28s ease;
}

.auth-card button:hover{
  transform:translateY(-2px);
}

.auth-card button:active{
  transform:translateY(0) scale(.99);
}

#message{
  min-height:24px;
  margin-bottom:0;
  color:#dbe4f0;
  font-weight:800;
  word-break:break-word;
}

.auth-top{
  display:flex;
  align-items:center;
  gap:18px;
  margin-bottom:18px;
}

.auth-logo{
  width:76px;
  height:76px;
  border-radius:24px;
  display:grid;
  place-items:center;
  color:#07101a;
  font-size:1.6rem;
  font-weight:900;
  background:linear-gradient(135deg,#fff,#dbe7ff);
  box-shadow:0 20px 48px rgba(141,189,255,.22);
}

.auth-chip{
  display:inline-flex;
  min-height:32px;
  align-items:center;
  padding:0 12px;
  border-radius:999px;
  color:#dbe4f0;
  font-size:.72rem;
  font-weight:900;
  letter-spacing:.11em;
  text-transform:uppercase;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.045);
  margin-bottom:10px;
}

.auth-subtitle{
  margin-top:0!important;
}

.auth-mode-tabs{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  padding:8px;
  border-radius:22px;
  border:1px solid rgba(255,255,255,.11);
  background:rgba(255,255,255,.045);
  margin:22px 0 18px;
}

.mode-tab{
  height:46px!important;
  margin:0!important;
  border-radius:16px!important;
  color:#dbe4f0!important;
  background:transparent!important;
  border:1px solid transparent!important;
}

.mode-tab.active{
  color:#07101a!important;
  background:linear-gradient(135deg,#fff,#dbe7ff)!important;
}

.auth-fields{
  display:grid;
  gap:0;
}

.auth-primary-btn{
  margin-top:20px!important;
  color:#07101a!important;
  background:linear-gradient(135deg,#fff,#dbe7ff)!important;
}

.auth-secondary-btn{
  color:white!important;
  background:rgba(141,189,255,.11)!important;
  border:1px solid rgba(141,189,255,.25)!important;
}

.auth-link-btn{
  height:auto!important;
  margin-top:14px!important;
  padding:0!important;
  color:#dbe4f0!important;
  background:transparent!important;
  border:none!important;
  text-align:left!important;
}

.auth-divider{
  height:1px;
  background:rgba(255,255,255,.10);
  margin:24px 0 16px;
}

.secure-strip{
  display:flex;
  gap:10px;
  align-items:center;
  color:#aeb8c8;
  font-size:.82rem;
  font-weight:700;
  line-height:1.5;
}

.secure-dot{
  width:10px;
  height:10px;
  border-radius:50%;
  background:#73ffbf;
  box-shadow:0 0 20px #73ffbf;
  flex-shrink:0;
}

.auth-message{
  min-height:24px;
  margin:18px 0 0!important;
  font-weight:800;
  line-height:1.6!important;
}

.auth-message.success{color:#73ffbf!important;}
.auth-message.error{color:#ff7d9f!important;}
.auth-message.warning{color:#ffe6a6!important;}

.back-link{
  display:inline-flex;
  margin-top:18px;
  color:#dbe4f0;
  text-decoration:none;
  font-weight:900;
}

.hidden{
  display:none!important;
}

.account-card{
  width:min(640px,calc(100% - 20px));
}

.account-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
}

.account-info-box{
  padding:18px;
  border-radius:20px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.055);
}

.account-info-box span{
  display:block;
  color:#aeb8c8;
  font-size:.78rem;
  font-weight:900;
  letter-spacing:.12em;
  text-transform:uppercase;
  margin-bottom:8px;
}

.account-info-box strong{
  display:block;
  color:#ffffff;
  font-size:.95rem;
  line-height:1.5;
  word-break:break-all;
}

@media(max-width:640px){
  .account-grid{
    grid-template-columns:1fr;
  }
}

@keyframes authAurora{
  from{
    transform:translate3d(0,0,0) scale(.95);
  }
  to{
    transform:translate3d(-80px,80px,0) scale(1.12);
  }
}

@keyframes floatDot{
  0%,100%{
    transform:translateY(0) scale(.9);
    opacity:.38;
  }
  50%{
    transform:translateY(-36px) scale(1.15);
    opacity:1;
  }
}

@media(max-width:560px){
  body{
    overflow:auto;
  }

  .auth-card{
    padding:30px;
    border-radius:30px;
  }

  .auth-card h1{
    font-size:2.25rem;
  }
}