/**
 * Multi Plus auth (login) page — feverTime auth.css structure adapted.
 * Scoped to body.multi-plus-auth-page only.
 */

.multi-plus-auth-page,
.multi-plus-auth-page * {
  box-sizing: border-box;
}

html:has(body.multi-plus-auth-page) {
  margin: 0;
  min-height: 100%;
}

body.multi-plus-auth-page {
  margin: 0;
  font-family: "Pretendard", "Noto Sans KR", sans-serif;
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  background: #050608;
  color: #16181d;
}

.multi-plus-auth-page .auth-background-media {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #050608;
  pointer-events: none;
  user-select: none;
}

.multi-plus-auth-page .auth-background-media__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  filter: saturate(1.05) brightness(1.05);
  pointer-events: none;
}

.multi-plus-auth-page .auth-background-media__shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  /* minimal dim — keep video visible while preserving panel contrast */
  background:
    linear-gradient(
      90deg,
      rgba(3, 5, 8, 0.18) 0%,
      rgba(6, 10, 14, 0.1) 36%,
      rgba(10, 14, 18, 0.06) 60%,
      rgba(7, 10, 14, 0.14) 100%
    ),
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.06), transparent 24%),
    radial-gradient(circle at 82% 20%, rgba(31, 198, 143, 0.08), transparent 26%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.1));
}

.multi-plus-auth-page .auth-layout {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
  padding-left: max(16px, env(safe-area-inset-left));
  padding-right: max(16px, env(safe-area-inset-right));
  padding-bottom: max(32px, env(safe-area-inset-bottom));
}

.multi-plus-auth-page .auth-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  width: 100%;
}

.multi-plus-auth-page .auth-panel__inner {
  width: 100%;
  max-width: 460px;
  padding: 0;
}

.multi-plus-auth-page .auth-card {
  width: 100%;
  padding: 34px 30px 30px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  /* Minimal translucent fill for text contrast (feverTime card bg was commented out) */
  background: rgba(12, 16, 22, 0.45);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow:
    0 26px 64px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.multi-plus-auth-page .auth-card__header {
  text-align: center;
}

.multi-plus-auth-page .auth-card__header h1 {
  margin: 0;
  font-size: 2.25rem;
  letter-spacing: -0.04em;
  font-weight: 700;
  color: #ffffff;
}

.multi-plus-auth-page .auth-card__header p {
  margin: 14px 0 0;
  color: #c1cad7;
  line-height: 1.6;
}

.multi-plus-auth-page .auth-alert {
  margin-top: 24px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(193, 207, 219, 0.28);
  background: rgba(255, 255, 255, 0.08);
  color: #d4dde9;
  font-size: 0.94rem;
  line-height: 1.5;
}

.multi-plus-auth-page .auth-alert i {
  margin-top: 1px;
  flex-shrink: 0;
}

.multi-plus-auth-page .auth-alert--info {
  background: rgba(25, 195, 125, 0.12);
  border-color: rgba(25, 195, 125, 0.34);
}

.multi-plus-auth-page .auth-alert--success {
  background: rgba(25, 195, 125, 0.14);
  border-color: rgba(25, 195, 125, 0.4);
}

.multi-plus-auth-page .auth-alert--danger,
.multi-plus-auth-page .auth-alert--error {
  background: rgba(234, 84, 85, 0.16);
  border-color: rgba(234, 84, 85, 0.4);
  color: #ffd7d7;
}

.multi-plus-auth-page .auth-alert--warning {
  background: rgba(255, 159, 67, 0.16);
  border-color: rgba(255, 159, 67, 0.4);
}

.multi-plus-auth-page .auth-form {
  margin-top: 28px;
  text-align: left;
}

.multi-plus-auth-page .auth-field + .auth-field {
  margin-top: 20px;
}

.multi-plus-auth-page .auth-field label {
  display: block;
  margin-bottom: 9px;
  color: #c7cfdb;
  font-size: 0.92rem;
  font-weight: 600;
}

.multi-plus-auth-page .auth-field input {
  width: 100%;
  height: 56px;
  padding: 0 16px;
  border: 1px solid rgba(206, 214, 223, 0.42);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.14);
  color: #f1f5fb;
  font: inherit;
  font-size: 16px; /* avoid iOS zoom on focus */
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.multi-plus-auth-page .auth-field input::placeholder {
  color: rgba(223, 231, 243, 0.62);
}

.multi-plus-auth-page .auth-field input:focus,
.multi-plus-auth-page .auth-field input:focus-visible {
  outline: none;
  border-color: #19c37d;
  box-shadow: 0 0 0 4px rgba(25, 195, 125, 0.14);
}

.multi-plus-auth-page .auth-password {
  position: relative;
}

.multi-plus-auth-page .auth-password input {
  padding-right: 52px;
}

.multi-plus-auth-page .auth-password__toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #c7cfdb;
  transform: translateY(-50%);
  cursor: pointer;
}

.multi-plus-auth-page .auth-password__toggle:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

.multi-plus-auth-page .auth-password__toggle:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(25, 195, 125, 0.28);
}

.multi-plus-auth-page .auth-submit {
  width: 100%;
  height: 56px;
  margin-top: 22px;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, #17191d, #2b3037);
  color: #ffffff;
  font: inherit;
  font-weight: 700;
  letter-spacing: -0.02em;
  cursor: pointer;
  box-shadow: 0 18px 28px rgba(17, 19, 21, 0.22);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.multi-plus-auth-page .auth-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 34px rgba(17, 19, 21, 0.2);
}

.multi-plus-auth-page .auth-submit:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(25, 195, 125, 0.28);
}

@media (max-width: 1080px) {
  .multi-plus-auth-page .auth-layout {
    padding: 24px 16px;
  }

  .multi-plus-auth-page .auth-background-media__shade {
    background:
      linear-gradient(180deg, rgba(4, 7, 10, 0.14), rgba(4, 7, 10, 0.2)),
      linear-gradient(90deg, rgba(5, 6, 8, 0.12), rgba(5, 6, 8, 0.06));
  }
}

@media (max-width: 767px) {
  .multi-plus-auth-page .auth-panel__inner {
    max-width: 100%;
    padding: 0;
  }

  .multi-plus-auth-page .auth-card__header h1 {
    font-size: 2rem;
  }
}

@media (max-width: 767px), (max-height: 700px) {
  body.multi-plus-auth-page {
    overflow-y: auto;
  }

  .multi-plus-auth-page .auth-layout {
    align-items: flex-start;
    padding-top: 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .multi-plus-auth-page .auth-background-media__video {
    display: none;
  }

  .multi-plus-auth-page * {
    scroll-behavior: auto;
  }

  .multi-plus-auth-page .auth-submit,
  .multi-plus-auth-page .auth-field input {
    transition: none;
  }

  .multi-plus-auth-page .auth-submit:hover {
    transform: none;
  }
}
