.klearn-login {
  min-height: 100vh;
  background: radial-gradient(ellipse at top right, #eee9ff, transparent 55%), #f8f9fd;
}

.login-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 20px;
}

.login-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
  align-items: start;
  gap: clamp(20px, 5vw, 54px);
  max-width: 880px;
  margin-top: clamp(20px, 8vh, 88px);
  padding-bottom: 48px;
}

.login-workspaces { padding-top: 16px; }

.login-workspaces h2 {
  font-size: 27px;
  letter-spacing: -.7px;
}

.login-roles { display: grid; gap: 9px; }

.login-roles a {
  display: grid;
  gap: 3px;
  padding: 10px 15px;
  border: 1px solid #e4e1ef;
  border-radius: 10px;
  background: #ffffffab;
}

.login-roles a:hover { border-color: #9c8fe6; }

.login-roles a[aria-current="page"] {
  border-color: #7f6bd7;
  background: #f0ecff;
}

.login-roles strong { font-size: 16px; }
.login-roles span { color: var(--muted); font-size: 13px; }

.login-card {
  min-width: 0;
  padding: clamp(22px, 5vw, 42px);
  background: #fff;
  border: 1px solid #e8e4f3;
  border-radius: 18px;
  box-shadow: 0 16px 42px #2314540c;
  overflow-wrap: anywhere;
}

.login-card .eyebrow, .login-workspaces .eyebrow {
  margin-bottom: 12px;
  color: var(--purple);
}

.login-card h1 {
  font-size: clamp(34px, 5vw, 48px);
  letter-spacing: -1.4px;
  margin-bottom: 15px;
}

.login-card h2 { font-size: 24px; }

.login-form {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.login-form label { font-weight: 600; }

.login-form input[type="email"] {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #aca6bd;
  border-radius: 8px;
  color: var(--ink);
  font: inherit;
}

.login-form input:focus-visible {
  outline: 3px solid #285fbb;
  outline-offset: 2px;
}

.login-card .button {
  justify-self: start;
  border: 0;
  cursor: pointer;
  white-space: normal;
}

.login-message {
  padding: 11px 14px;
  border-radius: 8px;
  background: #f0edff;
  color: #44328b;
}

.login-error {
  background: #fff1ed;
  color: #8c2d25;
}

@media (max-width: 650px) {
  .login-layout { grid-template-columns: 1fr; margin-top: 0; }
  .login-workspaces { padding-top: 0; }
  .login-roles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .login-roles a { padding: 8px; }
}
