/* Centered auth pages (login, register, forgot password) */

.auth-center-page {
  margin: 0;
  min-height: 100vh;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background: #ffffff;
  color: #0f172a;
}

.auth-center {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
}

.auth-login-wrap {
  width: 100%;
  max-width: 390px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
}

.brand-mark {
  display: block;
  width: 100%;
  text-decoration: none;
  color: #0f172a;
}

/* Same sizing as .oz-logo__img in the sidebar */
.brand-mark__img {
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 56px;
  object-fit: contain;
  object-position: center;
  display: block;
  margin: 0 auto;
  background: transparent;
}

/* Dark theme (same toggle as main app) */
body.auth-center-page:not(.light-theme) {
  background: #0f172a;
  color: #f1f5f9;
}

body.auth-center-page:not(.light-theme) .brand-mark {
  color: #f1f5f9;
}

body.auth-center-page:not(.light-theme) .brand-mark__img {
  filter: invert(1) hue-rotate(180deg);
}

body.auth-center-page:not(.light-theme) .auth-login-card__title {
  color: #f1f5f9;
}

body.auth-center-page:not(.light-theme) .auth-label,
body.auth-center-page:not(.light-theme) .auth-remember,
body.auth-center-page:not(.light-theme) .auth-register-hint {
  color: #94a3b8;
}

body.auth-center-page:not(.light-theme) .auth-input {
  background: #1e293b;
  color: #f1f5f9;
}

body.auth-center-page:not(.light-theme) .auth-input::placeholder {
  color: #64748b;
}

body.auth-center-page:not(.light-theme) .auth-input:focus {
  background: #334155;
}

.brand-mark__name {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.auth-login-card {
  width: 100%;
  max-width: 328px;
  margin: 0 auto;
}

.auth-login-card__title {
  margin: 0 0 22px;
  font-size: 26px;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.auth-alert {
  margin-bottom: 14px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.4;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.auth-info {
  margin-bottom: 14px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.4;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
}

.auth-muted {
  margin: -8px 0 16px;
  font-size: 13px;
  line-height: 1.5;
  color: #64748b;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.auth-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.auth-label {
  font-size: 13px;
  font-weight: 500;
  color: #64748b;
}

.auth-forgot {
  font-size: 12px;
  color: #3b82f6;
  text-decoration: none;
  white-space: nowrap;
}

.auth-forgot:hover {
  text-decoration: underline;
}

.auth-input-wrap {
  position: relative;
}

.auth-input {
  width: 100%;
  height: 44px;
  padding: 0 40px 0 14px;
  border: none;
  border-radius: 10px;
  background: #eef2f7;
  color: #0f172a;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: box-shadow 0.15s ease, background 0.15s ease;
}

.auth-input-wrap .auth-input:only-child,
.auth-input:not(.js-pw-input) {
  padding-right: 14px;
}

.auth-input::placeholder {
  color: #94a3b8;
}

.auth-input:focus {
  background: #e8eef6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.35);
}

.auth-pw-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 16px;
  opacity: 0.55;
  line-height: 1;
}

.auth-pw-toggle:hover {
  opacity: 0.9;
}

.auth-remember {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #64748b;
  cursor: pointer;
  user-select: none;
}

.auth-remember input {
  width: 16px;
  height: 16px;
  accent-color: #3b82f6;
}

.auth-submit {
  width: 100%;
  height: 48px;
  margin-top: 4px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(180deg, #4f8ff7 0%, #3b82f6 100%);
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.35);
  transition: filter 0.15s ease, transform 0.1s ease;
}

.auth-submit:hover {
  filter: brightness(1.05);
}

.auth-submit:active {
  transform: translateY(1px);
}

.auth-register-hint {
  margin: 20px 0 0;
  text-align: center;
  font-size: 13px;
  color: #64748b;
}

.auth-register-hint a {
  color: #3b82f6;
  font-weight: 600;
  text-decoration: none;
}

.auth-register-hint a:hover {
  text-decoration: underline;
}
