.orca-auth-page {
  position: relative;
  display: flex;
  flex: 1 0 auto;
  align-items: center;
  justify-content: center;
  background: var(--orca-page);
  padding: 3rem 1.5rem;
}

.orca-auth-panel {
  width: 100%;
  max-width: 34.375rem;
}

.orca-auth-panel--centered {
  text-align: center;
}

.orca-auth-brand {
  display: flex;
  align-items: center;
  margin-bottom: 1.75rem;
  color: var(--orca-primary);
  text-decoration: none;
}

.orca-auth-brand .orca-brand-logo-wordmark {
  height: 4rem;
}

.orca-auth-title {
  color: var(--orca-primary);
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.15;
}

.orca-auth-copy {
  margin-top: 0.5rem;
  color: var(--orca-primary);
  font-size: 1rem;
  line-height: 1.7;
}

.orca-auth-form {
  display: grid;
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.orca-auth-field {
  display: grid;
  gap: 0.5rem;
}

.orca-auth-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.orca-auth-field-footer {
  display: flex;
  justify-content: flex-end;
}

.orca-auth-label {
  color: var(--orca-text);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.orca-auth-link {
  color: var(--orca-link);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
}

.orca-auth-link:hover {
  text-decoration: underline;
}

.orca-auth-input-wrap {
  position: relative;
  display: block;
}

.orca-auth-input {
  width: 100%;
  border: 1px solid var(--orca-control-border);
  border-radius: 0.5rem;
  background: var(--orca-surface);
  color: var(--orca-text);
  font-size: 1rem;
  outline: none;
  padding: 1rem 3rem 1rem 1rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.orca-auth-input::placeholder {
  color: var(--orca-text-muted);
}

.orca-auth-input:focus {
  border-color: var(--orca-link);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--orca-link) 16%, transparent);
}

.orca-auth-input-icon {
  position: absolute;
  right: 1rem;
  top: 50%;
  pointer-events: none;
  transform: translateY(-50%);
  color: var(--orca-text-muted);
  font-size: 1.5rem;
}

.orca-auth-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  border: 0;
  border-radius: 0.5rem;
  background: var(--orca-primary);
  color: var(--orca-on-primary);
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  padding: 1rem;
  box-shadow: 0 18px 36px color-mix(in srgb, var(--orca-primary) 12%, transparent);
  transition: transform 0.15s ease;
}

.orca-auth-submit:active {
  transform: scale(0.99);
}

.orca-auth-divider {
  margin-top: 2.5rem;
  border-top: 1px solid var(--orca-border);
  padding-top: 1rem;
  text-align: center;
  color: var(--orca-primary);
  font-size: 0.875rem;
}

.orca-auth-callout,
.orca-auth-error {
  border-radius: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.5;
  padding: 0.875rem 1rem;
}

.orca-auth-copy + .orca-auth-callout,
.orca-auth-copy + .orca-auth-error {
  margin-top: 1.25rem;
}

.orca-auth-callout {
  border: 1px solid var(--orca-border);
  background: var(--orca-surface);
  color: var(--orca-text);
}

.orca-auth-error {
  border: 1px solid var(--orca-status-error-surface);
  background: var(--orca-status-error-surface);
  color: var(--orca-status-error-text);
}

.orca-auth-secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  border: 1px solid var(--orca-control-border);
  border-radius: 0.5rem;
  background: var(--orca-surface);
  color: var(--orca-text);
  font-size: 0.9375rem;
  font-weight: 700;
  margin-top: 1rem;
  padding: 0.875rem 1rem;
  text-decoration: none;
}

.orca-password-feedback {
  color: var(--orca-text);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.4;
}

.orca-password-feedback.is-valid {
  color: var(--orca-status-success-text);
}

.orca-password-feedback.is-invalid {
  color: var(--orca-status-error-text);
}

@media (max-width: 767px) {
  .orca-auth-page {
    align-items: center;
    padding: 1.25rem;
  }

  .orca-auth-brand {
    margin-bottom: 1.25rem;
  }

  .orca-auth-logo {
    width: 2.625rem;
    height: 2.625rem;
  }

  .orca-auth-brand-text {
    font-size: 1.875rem;
  }

  .orca-auth-title {
    font-size: 1.5rem;
  }

  .orca-auth-copy {
    font-size: 0.9375rem;
    line-height: 1.5;
  }

  .orca-auth-form {
    gap: 1rem;
    margin-top: 1.5rem;
  }

  .orca-auth-input {
    padding-top: 0.875rem;
    padding-bottom: 0.875rem;
  }

  .orca-auth-submit {
    padding: 0.875rem 1rem;
  }

  .orca-auth-divider {
    margin-top: 1.5rem;
  }
}
