*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', sans-serif;
  background: #f5f4f0;
  -webkit-text-size-adjust: 100%;
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  min-height: 100dvh;
}

.login-container {
  background: #fff;
  border: 0.5px solid rgba(0,0,0,0.08);
  border-radius: 16px;
  padding: 36px 32px;
  width: 100%;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.login-brand {
  text-align: center;
}

.login-brand-name {
  font-size: 18px;
  font-weight: 600;
  color: #1a1a1a;
  letter-spacing: -.01em;
}

.login-brand-sub {
  font-size: 13px;
  color: #999;
  margin-top: 4px;
}

.login-fields {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #aaa;
}

.form-group input {
  width: 100%;
  padding: 11px 14px;
  border: 0.5px solid rgba(0,0,0,0.12);
  border-radius: 8px;
  font-size: 16px;
  background: #f5f4f0;
  color: #1a1a1a;
  outline: none;
  transition: border-color .12s, background .12s;
  -webkit-appearance: none;
}

.form-group input:focus {
  border-color: #534AB7;
  background: #fff;
}

.btn-login {
  width: 100%;
  padding: 12px;
  background: #534AB7;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background .12s;
  min-height: 46px;
}

.btn-login:hover { background: #3C3489; }
.btn-login:active { background: #3C3489; }

.alert {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  text-align: center;
}

.alert-error {
  background: #FCEBEB;
  color: #A32D2D;
}

.alert-success {
  background: #EAF3DE;
  color: #27500A;
}