/* /assets/css/auth.css */
:root{
  --bg1:#050812;
  --bg2:#0b1530;
  --card:#0b1220cc;
  --border:rgba(255,255,255,.10);
  --text:#e5e7eb;
  --muted:#a7b0c0;
  --accent:#2563eb;
  --accent2:#22c55e;
  --danger:#ef4444;
  --shadow: 0 20px 60px rgba(0,0,0,.45);
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Inter, Arial;
  color:var(--text);
  background:
    radial-gradient(900px 500px at 10% 10%, rgba(37,99,235,.18), transparent 60%),
    radial-gradient(800px 500px at 90% 20%, rgba(34,197,94,.14), transparent 60%),
    linear-gradient(180deg, var(--bg1), var(--bg2));
}

.wrap{
  min-height:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:28px 16px;
}

.card{
  width: 440px;
  max-width: 100%;
  border:1px solid var(--border);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  backdrop-filter: blur(10px);
  border-radius: 18px;
  box-shadow: var(--shadow);
  overflow:hidden;
  position:relative;
}

.card::before{
  content:"";
  position:absolute;
  inset:-2px;
  background: radial-gradient(600px 200px at 30% 0%, rgba(37,99,235,.35), transparent 70%);
  pointer-events:none;
}

.header{
  position:relative;
  padding:22px 22px 14px;
  border-bottom:1px solid rgba(255,255,255,.06);
}

.brand{
  display:flex;
  gap:10px;
  align-items:center;
}
.logo{
  width:40px;height:40px;
  border-radius:12px;
  background: linear-gradient(135deg, rgba(37,99,235,.95), rgba(34,197,94,.85));
  box-shadow: 0 10px 30px rgba(37,99,235,.20);
}
.title{
  line-height:1.15;
}
.title h1{
  margin:0;
  font-size:18px;
  letter-spacing:.2px;
}
.title p{
  margin:4px 0 0;
  font-size:12.5px;
  color:var(--muted);
}

.body{
  position:relative;
  padding:18px 22px 22px;
}

.field{
  margin-top:14px;
}
label{
  display:block;
  font-size:12.5px;
  color:var(--muted);
  margin:0 0 7px;
}

.input{
  width:100%;
  padding:12px 12px;
  border-radius: 12px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(5, 8, 18, .55);
  color:var(--text);
  outline:none;
}
.input:focus{
  border-color: rgba(37,99,235,.55);
  box-shadow: 0 0 0 4px rgba(37,99,235,.18);
}

.row{
  display:flex;
  gap:10px;
  align-items:center;
}
.grow{flex:1}

.pw-wrap{
  position:relative;
}
/* Give the password input room for the button */
.pw-wrap .input{
  padding-right: 78px; /* space for Show/Hide button */
}
.pw-btn{
  position:absolute;
  right:10px;
  top:50%;
  transform:translateY(-50%);
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: var(--text);
  border-radius: 10px;
  padding:7px 10px;
  cursor:pointer;
  font-size:12px;
}

.btn{
  width:100%;
  margin-top:16px;
  padding:12px 14px;
  border:0;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(37,99,235,1), rgba(37,99,235,.75));
  color:#fff;
  font-weight:700;
  letter-spacing:.2px;
  cursor:pointer;
  box-shadow: 0 14px 30px rgba(37,99,235,.25);
}
/* On small screens reduce button width */
@media (max-width: 420px){
  .pw-wrap .input{ padding-right: 66px; }
  .pw-btn{ padding:6px 8px; font-size:11px; max-width: 56px; }
}
.btn:hover{ filter:brightness(1.05); }
.btn:active{ transform: translateY(1px); }

.msg{
  margin-top:12px;
  padding:10px 12px;
  border-radius: 12px;
  font-size:13px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
}
.msg.err{
  border-color: rgba(239,68,68,.28);
  background: rgba(239,68,68,.10);
  color: #fecaca;
}
.msg.ok{
  border-color: rgba(34,197,94,.25);
  background: rgba(34,197,94,.10);
  color: #bbf7d0;
}

.footer{
  margin-top:14px;
  color: var(--muted);
  font-size: 12px;
  text-align:center;
}
.small{
  color: var(--muted);
  font-size: 12px;
}
/* Better mobile scaling */
.card{
  width: 440px;
  max-width: 94vw;  /* prevents side overflow */
}

@media (max-width: 480px){
  .header{ padding:18px 16px 12px; }
  .body{ padding:16px; }
  .title h1{ font-size:16px; }
  .btn{ padding:12px; }
}
