:root{
  --bg:#0f1724;
  --card:#0b1220;
  --accent:#6ee7b7;
  --muted:#94a3b8;
}

*{
  box-sizing:border-box;
}

body{
  margin:0;
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:16px;
  background:linear-gradient(180deg,#071029 0%, #081426 60%);
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,'Segoe UI',Roboto,'Helvetica Neue',Arial;
}

.card{
  width:100%;
  max-width:420px;
  padding:28px;
  border-radius:16px;
  background:linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  box-shadow:0 8px 30px rgba(2,6,23,0.6);
  border:1px solid rgba(255,255,255,0.03);
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
  margin-bottom:18px;
}

.logo{
  width:44px;
  height:44px;
  border-radius:10px;
  background:linear-gradient(135deg,var(--accent),#60a5fa);
  display:flex;
  align-items:center;
  justify-content:center;
  color:#04263a;
  font-weight:700;
}

h1{
  margin:0;
  font-size:20px;
  color:#e6eef6;
}

p.lead{
  margin:6px 0 18px;
  color:var(--muted);
  font-size:13px;
}

form{
  display:grid;
  gap:12px;
}

label.visually-hidden{
  position:absolute!important;
  height:1px;
  width:1px;
  overflow:hidden;
  clip:rect(1px,1px,1px,1px);
  white-space:nowrap;
}

.field{
  position:relative;
}

input[type=password],
input[type=text],
select#username{
  width:100%;
  padding:14px 44px 14px 14px;
  border-radius:10px;
  border:1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  color:#e6eef6;
  font-size:15px;
  outline:none;
}

input[type=password]:focus,
input[type=text]:focus,
select#username:focus{
  border-color:var(--accent);
  box-shadow:0 0 0 1px rgba(110,231,183,0.3);
}

.toggle{
  position:absolute;
  right:8px;
  top:50%;
  transform:translateY(-50%);
  background:none;
  border:0;
  padding:6px 8px;
  border-radius:999px;
  cursor:pointer;
  color:var(--muted);
  font-size:12px;
  line-height:1;
  transition:background 0.15s, color 0.15s;
}

.toggle:hover{
  background:rgba(148,163,184,0.15);
  color:#e5e7eb;
}

.submit{
  width:100%;
  padding:12px;
  border-radius:10px;
  border:0;
  background:linear-gradient(90deg,var(--accent),#60a5fa);
  color:#04263a;
  font-weight:600;
  font-size:15px;
  cursor:pointer;
  transition:transform 0.1s, box-shadow 0.1s, filter 0.15s;
  box-shadow:0 10px 25px rgba(15,23,42,0.7);
}

.submit:active{
  transform:translateY(1px) scale(0.99);
  box-shadow:0 6px 18px rgba(15,23,42,0.8);
  filter:brightness(0.95);
}

.guest-btn{
  width:100%;
  padding:12px;
  border-radius:10px;
  border:0;
  font-weight:600;
  font-size:15px;
  cursor:pointer;
  margin-top:4px;
  background:rgba(148,163,184,0.15);
  color:#e5e7eb;
  box-shadow:none;
  transition:transform 0.1s, box-shadow 0.1s, filter 0.15s;
}

.guest-btn:active{
  transform:translateY(1px) scale(0.99);
  box-shadow:0 6px 18px rgba(15,23,42,0.8);
  filter:brightness(0.95);
}

.note{
  font-size:13px;
  color:var(--muted);
  text-align:center;
  margin-top:10px;
}

.feedback{
  font-size:14px;
  text-align:center;
  margin-top:8px;
  color:#ffd7d7;
}

@media (max-width:480px){
  body{padding:12px;}
  .card{margin:0;border-radius:14px;padding:22px;}
  h1{font-size:18px;}
  p.lead{font-size:12px;}
  input[type=password], input[type=text], select#username{font-size:14px;padding:12px 42px 12px 12px;}
  .submit, .guest-btn{font-size:14px;padding:11px;}
}

@media (min-width:481px) and (max-width:900px){
  body{padding:24px;}
  .card{max-width:460px;padding:30px;}
  h1{font-size:22px;}
  p.lead{font-size:14px;}
  input[type=password], input[type=text], select#username{font-size:15px;}
}

