.auth-body {
  min-height: 100vh;
  display: flex;
  background-color: var(--surface-0);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

/* Left brand panel */
.auth-side {
  position: relative;
  overflow-x: hidden;
  overflow-y: auto;
  width: 51%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.auth-side::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(10, 8, 6, 0.86);
}

.auth-side-inner {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 48px;
  width: 100%;
  padding: 60px clamp(28px, 4vw, 56px) 36px 165px;
}

.auth-side-content {
  max-width: 460px;
}

.auth-side-content .eyebrow {
  margin: 0 0 50px;
}

.auth-side-content h2 {
  font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem);
  margin-bottom: 16px;
}

.auth-side-content p {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 26px;
}

.auth-side-list {
  margin-bottom: 0;
}

.auth-side-note {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--text-faint);
}

.auth-side-note svg {
  width: 15px;
  height: 15px;
  color: var(--success);
  flex-shrink: 0;
}

/* Right form panel */
.auth-form-panel {
  position: relative;
  width: 50%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: rgba(10, 8, 6, 0.86);
}

.auth-form-panel-top {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 24px clamp(24px, 4vw, 56px);
}

.auth-form-center {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px clamp(24px, 4vw, 56px) 56px;
}

.auth-form-inner {
  width: 100%;
  max-width: 400px;
}

.auth-form-inner .eyebrow {
  margin-bottom: 16px;
}

.auth-form-inner h1 {
  font-size: clamp(1.5rem, 1.3rem + 0.8vw, 1.9rem);
  margin-bottom: 10px;
}

.auth-subtitle {
  color: var(--text-muted);
  font-size: 14.5px;
  margin-bottom: 28px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

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

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

.field input {
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 14.5px;
  color: var(--text);
  font-family: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field input::placeholder {
  color: var(--text-faint);
}

.field input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-tint);
}

.field.has-error input {
  border-color: var(--danger);
}

.field-error {
  font-size: 12.5px;
  color: var(--danger);
  min-height: 15px;
}

.password-wrap {
  position: relative;
  display: flex;
}

.password-wrap input {
  width: 100%;
  padding-right: 44px;
}

.password-toggle {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-radius: 8px;
  color: var(--text-light);
  cursor: pointer;
}

.password-toggle:hover {
  color: var(--text);
  background: var(--surface-3);
}

.password-toggle svg {
  width: 18px;
  height: 18px;
}

.field-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  margin-top: -4px;
}

.checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  cursor: pointer;
}

.checkbox input {
  width: 15px;
  height: 15px;
  accent-color: var(--brand);
}

.link-muted {
  color: var(--text-light);
}

.link-muted:hover {
  color: var(--brand-light);
}

.form-message {
  font-size: 13px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--brand-tint);
  border: 1px solid var(--border-brand);
  color: var(--text-muted);
}

.form-message.is-ok {
  background: var(--success-tint);
  border-color: var(--success);
  color: var(--success);
}

.form-message.is-error {
  background: var(--danger-tint);
  border-color: var(--danger);
  color: var(--danger);
}

.auth-submit {
  width: 100%;
  margin-top: 4px;
}

.auth-footer-text {
  margin-top: 24px;
  text-align: center;
  font-size: 13.5px;
  color: var(--text-light);
}

.auth-footer-text a {
  color: var(--brand-light);
  font-weight: 600;
}

@media (max-width: 960px) {
  .auth-side {
    display: none;
  }

  .auth-form-panel {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .auth-form-panel-top {
    padding: 20px;
  }

  .auth-form-center {
    padding: 16px 20px 40px;
  }
}
