/* /beta4/login/login.css */

/* Try to inherit from your theme file, but provide safe fallbacks */
:root{
  --login-bg: var(--bg, #0b0f17);
  --login-card: var(--panel, #121a2a);
  --login-border: rgba(255,255,255,.10);
  --login-text: var(--text, #e8eefc);
  --login-muted: rgba(232,238,252,.78);

  /* Accent fallback: if your theme defines something else, it will still work */
  --login-accent: var(--accent, #3b82f6);
  --login-accent-2: var(--accent2, #2563eb);

  --login-input-bg: rgba(10, 16, 28, .85);
  --login-input-border: rgba(255,255,255,.12);
  --login-focus: rgba(120,180,255,.7);

  --radius: 18px;
}

body{
  font-family: system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif;
  margin: 0;
  background: var(--login-bg);
  color: var(--login-text);
}

.wrap{
  min-height: 100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 28px 16px;
}

.card{
  width: min(460px, 100%);
  background: var(--login-card);
  border: 1px solid var(--login-border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: 0 14px 44px rgba(0,0,0,.38);
  text-align:center;
}

.logo{
  max-width: 260px;
  width: 78%;
  height: auto;
  display:block;
  margin: 0 auto 14px;
}

.title{
  margin: 0 0 6px;
  font-size: 22px;
}

.subtitle{
  margin: 0 0 16px;
  opacity: .82;
}

label{
  display:block;
  font-size: 13px;
  margin: 14px 0 7px;
  opacity: .9;
  text-align:left;
}

input{
  width: 100%;
  box-sizing:border-box;
  border-radius: 12px;
  border: 1px solid var(--login-input-border);
  background: var(--login-input-bg);
  color: var(--login-text);
  padding: 12px;
  font-size: 16px;
  outline: none;
}

input:focus{
  border-color: var(--login-focus);
  box-shadow: 0 0 0 3px rgba(120,180,255,.15);
}

.btn{
  width: 100%;
  margin-top: 18px;
  border: 0;
  border-radius: 12px;
  padding: 12px 14px;
  background: linear-gradient(180deg, var(--login-accent), var(--login-accent-2));
  color: white;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.btn:hover{ filter: brightness(1.06); }
.btn:active{ transform: translateY(1px); }

.forgot{
  display:block;
  margin-top: 14px;
  padding: 11px;
  border-radius: 12px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  color: rgba(147,197,253,1);
  text-decoration:none;
  font-size: 14px;
}
.forgot:hover{
  background: rgba(255,255,255,.11);
}


.row2{
  display:flex;
  gap:10px;
  margin-top:14px;
}

.row2 .forgot{
  flex:1;
  margin-top:0; /* row handles spacing */
}

@media (max-width: 420px){
  .row2{ flex-direction:column; }
}



/* Notice banner (when coming from forgot reset) */
.notice{
  margin: 12px 0 16px;
  padding: 12px 14px;
  border-radius: 12px;
  background: linear-gradient(
    180deg,
    rgba(34,197,94,.18),
    rgba(34,197,94,.10)
  );
  border: 1px solid rgba(34,197,94,.45);
  text-align: left;
  font-size: 14px;
}

/* Error box */
.error{
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(239,68,68,.15);
  border: 1px solid rgba(239,68,68,.35);
  text-align: left;
}

/* Shake animation if error exists */
@keyframes acrShake {
  0% { transform: translateX(0); }
  15% { transform: translateX(-10px); }
  30% { transform: translateX(10px); }
  45% { transform: translateX(-8px); }
  60% { transform: translateX(8px); }
  75% { transform: translateX(-4px); }
  90% { transform: translateX(4px); }
  100% { transform: translateX(0); }
}
.shake{
  animation: acrShake 0.42s ease-in-out;
}

/* Mobile spacing tweaks */
@media (max-width: 420px){
  .card{ padding: 18px; }
  .logo{ width: 84%; }
  .title{ font-size: 20px; }
}
