/* Page-specific layout for login. Shared visual primitives live in tokens.css and components.css. */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

.auth-shell {
  width: min(1040px, calc(100vw - 32px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 56px 0;
  display: grid;
  place-items: center;
}

.auth-card {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  box-shadow: var(--shadow-md);
}

.auth-intro {
  min-height: 560px;
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  border-right: 1px solid var(--line);
  background:
    linear-gradient(145deg, rgba(79, 70, 229, 0.12), rgba(79, 70, 229, 0) 56%),
    var(--surface-tint);
}

.auth-brand,
.auth-copy,
.auth-permissions,
.auth-form,
.auth-form-head,
.auth-fields,
.field {
  display: grid;
}

.auth-brand,
.auth-copy {
  gap: 10px;
}

.auth-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
}

.auth-copy h1 {
  font-size: 34px;
}

.auth-copy .sub {
  max-width: 520px;
  font-size: 15px;
}

.auth-permissions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.auth-permission {
  padding: 12px 14px;
  border: 1px solid var(--brand-border);
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel) 78%, transparent);
  color: var(--text-secondary);
  font-size: 13px;
}

.auth-form {
  align-content: center;
  gap: 24px;
  padding: 48px 44px;
}

.auth-form-head {
  gap: 6px;
}

.auth-form-head h2 {
  font-size: 24px;
}

.auth-fields {
  gap: 16px;
}

.field {
  gap: 7px;
}

input {
  width: 100%;
  padding: 6px 11px;
  font: inherit;
}

.auth-submit {
  width: 100%;
  min-height: 40px;
  justify-content: center;
  cursor: pointer;
}

.auth-status {
  min-height: 22px;
}

.auth-security-note {
  padding-top: 18px;
  border-top: 1px solid var(--line-subtle);
  color: var(--text-tertiary);
  font-size: 12px;
}

[hidden] {
  display: none !important;
}

@media (max-width: 780px) {
  .auth-shell {
    padding: 16px 0;
  }

  .auth-card {
    grid-template-columns: 1fr;
  }

  .auth-intro {
    min-height: auto;
    padding: 28px 24px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .auth-copy h1 {
    font-size: 28px;
  }

  .auth-permissions {
    display: none;
  }

  .auth-form {
    padding: 32px 24px;
  }
}
