@import url("/shared/responsive-base.css");

:root{
  --bg:#0b0d12;
  --panel:#141824;
  --panel-2:#1b2130;
  --text:#ffffff;
  --muted:#9aa4b2;
  --accent:#f5b800;
  --border:rgba(255,255,255,.08);
  --danger:#ff6b6b;
  --success:#39d98a;
}

*{
  box-sizing:border-box;
}

body{
  margin:0;
  font-family:system-ui,-apple-system,"SF Pro Text","Segoe UI",Roboto,sans-serif;
  background:
    radial-gradient(circle at top, rgba(245,184,0,.10), transparent 28%),
    var(--bg);
  color:var(--text);
  min-height:100vh;
}

.login-shell{
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px;
}

.login-card{
  width:100%;
  max-width:460px;
  background:var(--panel);
  border:1px solid var(--border);
  border-radius:22px;
  padding:28px;
  box-shadow:0 20px 60px rgba(0,0,0,.35);
}

.brand-block{
  display:flex;
  align-items:center;
  gap:14px;
  margin-bottom:24px;
}

.brand-logo{
  width:58px;
  height:58px;
  border-radius:16px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:linear-gradient(135deg,#f5b800,#ffd45b);
  color:#111;
  font-weight:800;
  font-size:22px;
}

.brand-block h1{
  margin:0;
  font-size:28px;
  line-height:1;
}

.subtitle{
  margin:6px 0 0;
  color:var(--muted);
  font-size:14px;
}

.login-form{
  display:flex;
  flex-direction:column;
  gap:14px;
}

.field{
  display:flex;
  flex-direction:column;
  gap:8px;
}

.field label{
  font-size:13px;
  color:var(--muted);
  font-weight:600;
}

.field input,
.field select{
  width:100%;
  border:1px solid var(--border);
  background:var(--panel-2);
  color:var(--text);
  border-radius:12px;
  padding:14px 14px;
  font-size:15px;
  outline:none;
}

.field input:focus,
.field select:focus{
  border-color:rgba(245,184,0,.8);
  box-shadow:0 0 0 3px rgba(245,184,0,.12);
}

.btn-login{
  margin-top:6px;
  border:none;
  background:var(--accent);
  color:#111;
  border-radius:12px;
  padding:14px 16px;
  font-size:15px;
  font-weight:800;
  cursor:pointer;
}

.btn-login:hover{
  filter:brightness(1.03);
}

.btn-login:disabled{
  opacity:.7;
  cursor:not-allowed;
}

.login-message{
  min-height:22px;
  font-size:14px;
  font-weight:600;
  color:var(--muted);
  margin-top:2px;
}

.login-message.error{
  color:var(--danger);
}

.login-message.success{
  color:var(--success);
}

@media (max-width:520px){
  .login-card{
    padding:22px 18px;
    border-radius:18px;
  }

  .brand-block h1{
    font-size:24px;
  }

  .btn-login{
    min-height:44px;
  }

  .field input,
  .field select{
    font-size:16px;
    min-height:44px;
  }

  .login-shell{
    padding:16px;
    padding-bottom:calc(16px + env(safe-area-inset-bottom, 0px));
    padding-top:calc(16px + env(safe-area-inset-top, 0px));
  }
}