/* ==========================================================================
   xDNS Monitoring — Liquid Glass Authentication View
   ========================================================================== */

body.auth-page {
  display: grid;
  place-items: center;
  padding: clamp(1rem, 4vw, 2rem);
}

.auth-shell {
  position: relative;
  z-index: 1;
  width: min(100%, 28.5rem);
}

.auth-card {
  padding: clamp(1.75rem, 5vw, 2.6rem);
  border-radius: var(--radius-xl);
  background: var(--glass-bg-elevated);
}

.auth-header {
  display: grid;
  gap: 1.15rem;
  margin-bottom: 1.65rem;
}

.brand-label {
  display: grid;
  gap: 0.1rem;
}

.brand-title {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.brand-subtitle {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.auth-heading {
  margin: 0;
  font-size: clamp(1.55rem, 5vw, 1.95rem);
  font-weight: 750;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.auth-lead {
  margin: 0.35rem 0 0;
  color: var(--text-secondary);
  font-size: 0.92rem;
}

/* Frosted Alerts */
.notice {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 1.15rem;
  padding: 0.78rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 550;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.notice.error {
  background: var(--status-down-bg);
  border: 1px solid var(--status-down-border);
  color: #ffe4e8;
}

.notice.success {
  background: var(--status-up-bg);
  border: 1px solid var(--status-up-border);
  color: #d1fae5;
}

/* Form Layout & Glass Inputs */
.auth-form {
  display: grid;
  gap: 1.05rem;
}

.field {
  display: grid;
  gap: 0.42rem;
}

.field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.01em;
}

.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.input-wrap input {
  width: 100%;
  min-width: 0;
  min-height: 3.1rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: var(--glass-well);
  box-shadow:
    inset 0 2px 6px rgba(2, 8, 20, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  font: inherit;
  transition:
    border-color 0.25s ease,
    background-color 0.25s ease,
    box-shadow 0.25s ease;
}

.input-wrap input.has-toggle {
  padding-right: 3.2rem;
}

.input-wrap input::placeholder {
  color: rgba(202, 220, 245, 0.38);
}

.input-wrap input:hover {
  border-color: rgba(255, 255, 255, 0.28);
}

.input-wrap input:focus {
  outline: none;
  background: var(--glass-well-focus);
  border-color: rgba(56, 189, 248, 0.78);
  box-shadow:
    0 0 0 3.5px var(--accent-glow),
    inset 0 2px 6px rgba(2, 8, 20, 0.35);
}

.password-toggle {
  position: absolute;
  right: 0.45rem;
  display: grid;
  place-items: center;
  width: 2.3rem;
  height: 2.3rem;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition:
    color 0.2s ease,
    background-color 0.2s ease;
}

.password-toggle:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.1);
}

.field-hint {
  color: var(--text-muted);
  font-size: 0.79rem;
  line-height: 1.4;
}

/* Liquid Glass Primary CTA Button */
.btn-liquid-primary {
  position: relative;
  min-height: 3.15rem;
  margin-top: 0.4rem;
  padding: 0.75rem 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: var(--radius-pill);
  background: linear-gradient(
    135deg,
    rgba(56, 189, 248, 0.92) 0%,
    rgba(14, 165, 233, 0.88) 48%,
    rgba(37, 99, 235, 0.92) 100%
  );
  box-shadow:
    0 12px 28px rgba(14, 165, 233, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.65),
    inset 0 -1px 0 rgba(6, 30, 72, 0.25);
  color: #ffffff;
  font: inherit;
  font-size: 0.96rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition:
    transform 0.28s var(--ease-spring),
    box-shadow 0.28s var(--ease-spring),
    filter 0.25s ease;
}

.btn-liquid-primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
  box-shadow:
    0 16px 34px rgba(14, 165, 233, 0.48),
    inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.btn-liquid-primary:active {
  transform: scale(0.985);
}

/* Mode Switch Footer */
.auth-switch {
  margin: 1.55rem 0 0;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.88rem;
}

.auth-switch a {
  color: #7dd3fc;
  font-weight: 650;
  text-decoration: none;
  margin-left: 0.25rem;
  transition: color 0.2s ease;
}

.auth-switch a:hover {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
