/* ============================================================================
   Auth Page Styles
   ============================================================================ */

.auth-screen,
.auth-screen * {
  box-sizing: border-box;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.auth-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 0;
  background:
    radial-gradient(900px 600px at 20% 20%, rgba(255, 255, 255, 0.28), transparent 55%),
    radial-gradient(900px 700px at 90% 20%, rgba(255, 255, 255, 0.18), transparent 60%),
    linear-gradient(135deg, #0b78ff 0%, #0b4dd6 40%, #0732aa 100%);
}

.auth-card {
  width: 100%;
  max-width: none;
  min-height: 100vh;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  backdrop-filter: none;
}

.auth-hero {
  position: relative;
  background: linear-gradient(180deg, rgba(15, 126, 255, 0.95) 0%, rgba(7, 45, 140, 0.98) 100%);
  color: #fff;
}

.auth-hero::before,
.auth-hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  width: 520px;
  height: 520px;
  left: -240px;
  bottom: -280px;
}

.auth-hero::after {
  width: 700px;
  height: 700px;
  left: -340px;
  bottom: -400px;
  border-color: rgba(255, 255, 255, 0.14);
}

.auth-hero-overlay {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-size: cover;
  background-position: center;
  mix-blend-mode: soft-light;
  pointer-events: none;
}

.auth-hero-inner {
  position: relative;
  height: 100%;
  padding: 72px 86px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
}

.auth-brand-row {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  opacity: 0.98;
}

.auth-brand-logo {
  width: 38px;
  height: 38px;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.25));
}

.auth-brand-name {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.auth-hero-copy {
  margin-top: 12px;
  max-width: 420px;
}

.auth-hero-title {
  font-size: 46px;
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.6px;
}

.auth-hero-subtitle {
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.88);
}

.auth-hero-cta {
  align-self: flex-start;
  margin-top: 10px;
  border: 0;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.2px;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  cursor: pointer;
}

.auth-hero-cta:hover {
  background: rgba(255, 255, 255, 0.22);
}

.auth-panel {
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 72px 76px;
}

.auth-panel-inner {
  width: min(360px, 100%);
}

.auth-title {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.3px;
  color: #1f2937;
  margin: 0;
}

.auth-subtitle {
  margin-top: 6px;
  font-size: 14px;
  color: #6b7280;
}

.auth-error {
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff1f2;
  border: 1px solid #fecdd3;
  color: #9f1239;
  font-size: 13px;
  line-height: 1.35;
}

.auth-form {
  margin-top: 22px;
}

.auth-field {
  margin-bottom: 14px;
}

.auth-field-tight {
  margin-bottom: 8px;
}

.auth-input {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 999px;
  border: 1px solid #eef0f4;
  background: #fbfbfc;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.02);
}

.auth-input:focus-within {
  border-color: rgba(11, 120, 255, 0.45);
  box-shadow: 0 0 0 4px rgba(11, 120, 255, 0.12);
  background: #fff;
}

.auth-input-icon {
  color: rgba(17, 24, 39, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.auth-input input {
  border: 0;
  outline: none;
  background: transparent;
  width: 100%;
  font-size: 14px;
  color: #111827;
}

.auth-input input::placeholder {
  color: rgba(17, 24, 39, 0.35);
}

.auth-row {
  margin: 10px 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.auth-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #6b7280;
  user-select: none;
  cursor: pointer;
}

.auth-checkbox input[type="checkbox"] {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  accent-color: #0b78ff;
  cursor: pointer;
}

.auth-primary {
  width: 100%;
  border: 0;
  cursor: pointer;
  padding: 12px 14px;
  border-radius: 999px;
  background: linear-gradient(180deg, #0b78ff 0%, #0b5de3 100%);
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.2px;
  box-shadow: 0 12px 30px rgba(11, 120, 255, 0.28);
}

.auth-primary:hover {
  filter: brightness(0.98);
}

.auth-link {
  width: 100%;
  margin-top: 12px;
  border: 0;
  background: transparent;
  color: #6b7280;
  font-size: 13px;
  cursor: default;
}

.auth-link[disabled] {
  opacity: 0.85;
}

.auth-switch {
  margin-top: 16px;
  font-size: 13px;
  color: #6b7280;
  text-align: center;
}

.auth-link-inline {
  border: 0;
  background: transparent;
  color: #0b78ff;
  font-weight: 800;
  cursor: pointer;
  padding: 0;
}

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

.auth-footer {
  margin-top: 26px;
  font-size: 11px;
  color: #9ca3af;
  text-align: center;
}

.auth-demo-users {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #f3f4f6;
}

.auth-demo-users p {
  font-size: 12px;
  color: #6b7280;
  margin-bottom: 10px;
  font-weight: 600;
}

.auth-demo-user-btn {
  width: 100%;
  padding: 10px 14px;
  margin-bottom: 8px;
  border: 1px solid #eef0f4;
  border-radius: 999px;
  background: #fbfbfc;
  color: #374151;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: left;
}

.auth-demo-user-btn:hover {
  background: #fff;
  border-color: rgba(11, 120, 255, 0.3);
  transform: translateX(4px);
}

@media (max-width: 920px) {
  .auth-card {
    grid-template-columns: 1fr;
    min-height: unset;
  }
  .auth-hero {
    min-height: 260px;
  }
  .auth-hero-inner {
    padding: 36px 28px;
  }
  .auth-panel {
    padding: 40px 22px;
  }
}
