* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body.auth-page {
  font-family: "Pretendard", "Noto Sans KR", sans-serif;
  position: relative;
  overflow: hidden;
  background: #050608;
  color: #16181d;
}

.auth-background-media {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #050608;
}

.auth-background-media__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  filter: saturate(1.05) brightness(0.9);
}

.auth-background-media__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(3, 5, 8, 0.68) 0%, rgba(6, 10, 14, 0.5) 36%, rgba(10, 14, 18, 0.3) 60%, rgba(7, 10, 14, 0.6) 100%),
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.08), transparent 24%),
    radial-gradient(circle at 82% 20%, rgba(31, 198, 143, 0.12), transparent 26%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.16), rgba(0, 0, 0, 0.36));
}

.auth-layout {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
}

.auth-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
}

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

.auth-card {
  width: 100%;
  padding: 34px 30px 30px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  /* background: linear-gradient(180deg, rgba(17, 20, 26, 0.84), rgba(20, 24, 32, 0.72)); */
  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);
}

.auth-card__header h2 {
  margin: 0;
  font-size: 2.25rem;
  letter-spacing: -0.04em;
  font-weight: 700;
  color: #FFFFFF;
}

.auth-card__header {
  text-align: center;
}

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

.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;
}

.auth-alert i {
  margin-top: 1px;
}

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

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

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

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

.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;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

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

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

.auth-password {
  position: relative;
}

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

.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;
}

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

.auth-remember {
  margin: 18px 0 22px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  width: 100%;
  color: #c7cfdb;
  font-size: 0.93rem;
  cursor: pointer;
}

.auth-remember input {
  width: 16px;
  height: 16px;
  accent-color: #19c37d;
}

.auth-submit {
  width: 100%;
  height: 56px;
  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;
}

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

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

  .auth-background-media__shade {
    background:
      linear-gradient(180deg, rgba(4, 7, 10, 0.55), rgba(4, 7, 10, 0.7)),
      linear-gradient(90deg, rgba(5, 6, 8, 0.4), rgba(5, 6, 8, 0.24));
  }
}

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

  .auth-card__header h2 {
    font-size: 2rem;
  }
}
