:root {
  --auth-background: #f5f5f5;
  --auth-surface: #ffffff;
  --auth-primary: #090909;
  --auth-primary-hover: #1a1a1a;
  --auth-text: #111111;
  --auth-text-soft: #707070;
  --auth-text-muted: #9a9a9a;
  --auth-border: #e4e4e4;
  --auth-border-strong: #cfcfcf;
  --auth-focus: rgba(0, 0, 0, 0.1);
  --auth-success: #177456;
  --auth-success-bg: #f0f8f5;
  --auth-success-border: #cce7dc;
  --auth-error: #b93a46;
  --auth-error-bg: #fff4f5;
  --auth-error-border: #efcdd1;
}

* {
  box-sizing: border-box;
}

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

body {
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Pretendard",
    "Noto Sans KR",
    "Apple SD Gothic Neo",
    "Malgun Gothic",
    sans-serif;
  color: var(--auth-text);
  background: var(--auth-background);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
input {
  font: inherit;
}

.auth-page {
  min-height: 100vh;
}

.auth-layout {
  display: grid;
  grid-template-columns: minmax(480px, 1.08fr) minmax(460px, 0.92fr);
  min-height: 100vh;
}

.auth-visual {
  position: relative;
  display: flex;
  overflow: hidden;
  min-height: 100vh;
  background: #171717;
  color: #ffffff;
}

.auth-visual::before {
  position: absolute;
  inset: -12px;
  background-image: url("../images/login_cover.jpg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  filter: blur(5px);
  transform: scale(1.03);
  content: "";
}

.auth-visual::after {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.38);
  content: "";
}

.auth-visual__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: space-between;
  padding: 54px 64px 58px;
}

.auth-brand,
.auth-mobile-brand {
  display: flex;
  align-items: center;
  gap: 13px;
}

.auth-brand__mark {
  display: inline-flex;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  align-items: center;
  justify-content: center;
  margin: 0;
  border-radius: 10px;
  background: #ffffff;
  color: #090909;
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
}

.auth-brand strong,
.auth-mobile-brand strong {
  display: block;
  font-size: 15px;
  font-weight: 750;
  letter-spacing: 0.04em;
}

.auth-brand > div > span,
.auth-mobile-brand > div > span {
  display: block;
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 11px;
}

.auth-visual__message {
  max-width: 680px;
  margin: auto 0;
  padding: 64px 0;
}

.auth-eyebrow {
  display: inline-flex;
  min-height: 29px;
  align-items: center;
  padding: 0 11px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 100px;
  background: rgba(0, 0, 0, 0.2);
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  font-weight: 650;
}

.auth-visual__message h1 {
  margin: 24px 0 20px;
  color: #ffffff;
  font-size: clamp(36px, 4vw, 40px);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.055em;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.24);
}

.auth-visual__message p {
  max-width: 580px;
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 16px;
  line-height: 1.8;
  letter-spacing: -0.02em;
}

.auth-status {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 13px;
  padding: 13px 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.3);
}

.auth-status__indicator {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 50%;
  background: #72d6ad;
  box-shadow: 0 0 0 4px rgba(114, 214, 173, 0.13);
}

.auth-status strong {
  display: block;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
}

.auth-status span {
  display: block;
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 11px;
}

.auth-panel {
  display: flex;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  padding: 48px;
  background: var(--auth-surface);
}

.auth-panel__inner {
  width: 100%;
  max-width: 420px;
}

.auth-mobile-brand {
  display: none;
  margin-bottom: 48px;
}

.auth-mobile-brand .auth-brand__mark {
  background: var(--auth-primary);
  color: #ffffff;
}

.auth-mobile-brand strong {
  color: var(--auth-text);
}

.auth-mobile-brand > div > span {
  color: var(--auth-text-soft);
}

.auth-header {
  margin-bottom: 34px;
}

.auth-header__label {
  display: block;
  margin-bottom: 10px;
  color: #898989;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.15em;
}

.auth-header h2 {
  margin: 0;
  color: var(--auth-text);
  font-size: 32px;
  font-weight: 750;
  line-height: 1.2;
  letter-spacing: -0.045em;
}

.auth-header p {
  margin: 10px 0 0;
  color: var(--auth-text-soft);
  font-size: 14px;
  line-height: 1.65;
  letter-spacing: -0.02em;
}

.auth-alert {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-bottom: 24px;
  padding: 13px 14px;
  border: 1px solid;
  border-radius: 10px;
}

.auth-alert__icon {
  display: flex;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 800;
}

.auth-alert strong {
  display: block;
  margin-bottom: 2px;
  font-size: 13px;
}

.auth-alert p {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
}

.auth-alert--error {
  border-color: var(--auth-error-border);
  background: var(--auth-error-bg);
  color: var(--auth-error);
}

.auth-alert--error .auth-alert__icon {
  background: rgba(185, 58, 70, 0.09);
}

.auth-alert--success {
  border-color: var(--auth-success-border);
  background: var(--auth-success-bg);
  color: var(--auth-success);
}

.auth-alert--success .auth-alert__icon {
  background: rgba(23, 116, 86, 0.09);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.auth-field label {
  display: block;
  margin-bottom: 8px;
  color: #333333;
  font-size: 13px;
  font-weight: 700;
}

.auth-input {
  position: relative;
}

.auth-input__icon {
  position: absolute;
  top: 50%;
  left: 16px;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
  font-size: 18px;
  line-height: 1;
  opacity: 0.45;
  pointer-events: none;
}

.auth-input input {
  width: 100%;
  height: 52px;
  padding: 0 16px 0 47px;
  border: 1px solid var(--auth-border);
  border-radius: 10px;
  outline: none;
  background: #ffffff;
  color: var(--auth-text);
  font-size: 14px;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.auth-input input::placeholder {
  color: #aaaaaa;
}

.auth-input input:hover {
  border-color: var(--auth-border-strong);
}

.auth-input input:focus {
  border-color: #777777;
  box-shadow: 0 0 0 4px var(--auth-focus);
}

.auth-input--error input {
  border-color: #c94c5a;
  background: #fffafa;
}

.auth-input--error input:focus {
  border-color: #b93a46;
  box-shadow: 0 0 0 4px rgba(185, 58, 70, 0.08);
}

.auth-input--error .auth-input__icon {
  opacity: 0.62;
}

.auth-field__error {
  margin: 7px 2px 0;
  color: #b42318;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.45;
}

.auth-field__hint {
  margin: 7px 2px 0;
  color: #7a8493;
  font-size: 11px;
  line-height: 1.5;
}

.auth-remember {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  color: #666666;
  font-size: 12px;
  cursor: pointer;
}

.auth-remember input {
  width: 15px;
  height: 15px;
  margin: 0;
  accent-color: var(--auth-primary);
}

.auth-submit {
  display: flex;
  width: 100%;
  height: 54px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 2px;
  border: 0;
  border-radius: 10px;
  background: var(--auth-primary);
  color: #ffffff;
  font-size: 14px;
  font-weight: 750;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.13);
  transition:
    background 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

.auth-submit .bi {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  font-size: 17px;
  line-height: 1;
}

.auth-submit:hover {
  background: var(--auth-primary-hover);
  box-shadow: 0 11px 26px rgba(0, 0, 0, 0.17);
  transform: translateY(-1px);
}

.auth-submit:active {
  transform: translateY(0);
}

.auth-submit:focus-visible {
  outline: 3px solid rgba(0, 0, 0, 0.14);
  outline-offset: 3px;
}

.auth-footer {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #eeeeee;
}

.auth-security {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #666666;
  font-size: 11px;
  font-weight: 650;
}

.auth-security .bi {
  width: 16px;
  height: 16px;
  font-size: 16px;
  line-height: 1;
  opacity: 0.6;
}

.auth-footer p {
  margin: 8px 0 0;
  color: var(--auth-text-muted);
  font-size: 10px;
  line-height: 1.5;
}

@media (max-width: 1050px) {
  .auth-layout {
    grid-template-columns: minmax(390px, 0.95fr) minmax(430px, 1.05fr);
  }

  .auth-visual__content {
    padding: 44px;
  }

  .auth-visual__message h1 {
    font-size: 40px;
  }
}

@media (max-width: 820px) {
  .auth-layout {
    display: block;
  }

  .auth-visual {
    display: none;
  }

  .auth-panel {
    min-height: 100vh;
    padding: 36px 24px;
  }

  .auth-mobile-brand {
    display: flex;
  }
}

@media (max-width: 480px) {
  .auth-panel {
    align-items: flex-start;
    padding: 28px 20px;
  }

  .auth-panel__inner {
    padding-top: 18px;
  }

  .auth-mobile-brand {
    margin-bottom: 54px;
  }

  .auth-header {
    margin-bottom: 30px;
  }

  .auth-header h2 {
    font-size: 29px;
  }

  .auth-input input {
    height: 50px;
  }

  .auth-submit {
    height: 52px;
  }
}

