:root {
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #29251f;
  background: #f7f4ee;
  font-synthesis: none;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
}

button,
input {
  font: inherit;
}

.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 50% 0%, rgba(109, 74, 255, .09), transparent 34%),
    linear-gradient(180deg, #fbf9f5 0%, #f3eee7 100%);
}

.login-card {
  width: min(100%, 410px);
  padding: 42px 40px 34px;
  border: 1px solid #e6e0d7;
  border-radius: 18px;
  background: rgba(255, 253, 250, .96);
  box-shadow: 0 22px 70px rgba(56, 43, 29, .11);
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin-bottom: 24px;
  border-radius: 11px;
  color: #fff;
  background: #6d4aff;
  font-size: 15px;
  font-weight: 800;
  box-shadow: 0 9px 22px rgba(109, 74, 255, .24);
}

.eyebrow {
  margin: 0 0 8px;
  color: #81796f;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .13em;
}

h1 {
  margin: 0;
  font-size: 30px;
  line-height: 1.15;
  letter-spacing: -.04em;
}

.description {
  margin: 12px 0 28px;
  color: #81796f;
  font-size: 14px;
  line-height: 1.6;
}

label {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 700;
}

.password-field {
  position: relative;
}

input {
  width: 100%;
  height: 50px;
  padding: 0 68px 0 14px;
  border: 1px solid #d9d2c8;
  border-radius: 10px;
  outline: none;
  color: #29251f;
  background: #fffdfa;
  transition: border-color .15s ease, box-shadow .15s ease;
}

input:focus {
  border-color: #6d4aff;
  box-shadow: 0 0 0 4px rgba(109, 74, 255, .11);
}

.toggle-password {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  padding: 6px;
  border: 0;
  color: #6d4aff;
  background: transparent;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.error-message {
  min-height: 19px;
  margin: 8px 0 4px;
  color: #c94f3d;
  font-size: 11px;
}

.submit-button {
  width: 100%;
  height: 50px;
  border: 0;
  border-radius: 10px;
  color: #fff;
  background: #29251f;
  font-weight: 750;
  cursor: pointer;
  transition: transform .15s ease, opacity .15s ease;
}

.submit-button:hover { transform: translateY(-1px); }
.submit-button:disabled { cursor: wait; opacity: .65; transform: none; }

.security-note {
  margin: 22px 0 0;
  color: #9a9288;
  text-align: center;
  font-size: 10px;
}

@media (max-width: 480px) {
  .login-shell { padding: 14px; }
  .login-card { padding: 34px 24px 28px; }
}
