/* HOME 로그인 — 히어로 + 우측 카드 */

.login-page {
  position: relative;
  min-height: 100vh;
  margin: 0;
  overflow: hidden;
  color: #fff;
  font-family: "Outfit", "Malgun Gothic", "맑은 고딕", "Apple SD Gothic Neo", sans-serif;
}

.login-bg {
  position: absolute;
  inset: 0;
  background:
    url("/login-bg.jpg") center / cover no-repeat;
  transform: scale(1.02);
  z-index: 0;
}

.login-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(8, 18, 36, 0.55) 0%, rgba(8, 18, 36, 0.28) 42%, rgba(8, 18, 36, 0.18) 100%),
    linear-gradient(180deg, rgba(8, 18, 36, 0.15) 0%, rgba(8, 18, 36, 0.35) 100%);
}

.login-shell {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  align-items: center;
  gap: clamp(24px, 5vw, 80px);
  min-height: 100vh;
  padding: clamp(28px, 6vw, 80px) clamp(24px, 6vw, 96px);
  box-sizing: border-box;
}

.login-hero {
  max-width: 720px;
  padding-right: 12px;
}

.login-hero-title {
  margin: 0;
  font-size: clamp(28px, 3.6vw, 37px);
  font-weight: 600;
  color: #fff;
  text-shadow: 7px 7px 16px rgba(0, 0, 0, 0.28);
}

.login-hero-sub {
  margin: 12px 0 0;
  font-size: clamp(15px, 1.4vw, 15px);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
}

.login-side {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding-right: 32px; /* FAB가 카드 밖으로 반쯤 나와도 잘리지 않게 */
}

.login-card {
  --card-pad-x: 52px;
  --fab-size: 58px;
  position: relative;
  width: min(100%, 440px);
  min-height: 320px;
  padding: 52px var(--card-pad-x) 96px;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  color: #1f2937;
  overflow: visible;
  box-sizing: border-box;
}

.login-card-accent {
  position: absolute;
  top: 0;
  left: var(--card-pad-x);
  transform: translateY(-50%);
  width: 48px;
  height: 5px;
  border-radius: 999px;
  background: #0086e6;
}

.login-brand {
  font-size: 25px;
  font-weight: 700;
  color: #0086e6;
  line-height: 1;
}

.login-heading {
  margin-top: 10px;
  margin-bottom: 28px;
  font-size: 16px;
  font-weight: 600;
  color: #111827;
}

.login-form {
  position: relative;
}

.login-fields {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-right: calc(var(--fab-size) * 0.35);
}

.login-form .form-group {
  margin: 0;
}

.login-form input {
  width: 100%;
  height: 40px;
  padding: 0 14px;
  border: none;
  border-radius: 6px;
  background: #e8eef5;
  color: #111827;
  font-size: 14px;
  font-weight: 500;
  outline: none;
  box-sizing: border-box;
  transition: box-shadow 0.15s ease, background 0.15s ease;
}

.login-form input::placeholder {
  color: #8a97a8;
  font-weight: 500;
}

.login-form input:focus {
  background: #e1e9f3;
  box-shadow: inset 0 0 0 2px rgba(0, 134, 230, 0.35);
}

.login-fab {
  position: absolute;
  top: 50%;
  /* 카드 오른쪽 테두리에 중심이 오도록: 카드 패딩 + 반지름만큼 밖으로 */
  right: calc(-1 * var(--card-pad-x) - var(--fab-size) / 2);
  transform: translateY(-50%);
  width: var(--fab-size);
  height: var(--fab-size);
  min-width: var(--fab-size);
  min-height: var(--fab-size);
  padding: 0;
  border: none;
  border-radius: 50%;
  background: #0086e6;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(0, 134, 230, 0.45);
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
  cursor: pointer;
}

.login-fab .material-symbols-outlined {
  font-size: 26px;
  font-variation-settings: "wght" 500;
}

.login-fab:hover:not(:disabled) {
  background: #0074c7;
  transform: translateY(-50%) scale(1.04);
  box-shadow: 0 14px 28px rgba(0, 134, 230, 0.5);
}

.login-fab:disabled {
  opacity: 0.65;
  cursor: default;
}

.login-form-otp .login-fab {
  top: auto;
  bottom: 0;
  transform: none;
}

.login-form-otp .login-fab:hover:not(:disabled) {
  transform: scale(1.04);
}

.login-cancel {
  display: block;
  /* login-fields 의 padding-right 와 동일하게 FAB 여백을 빼서 인풋과 너비 맞춤 */
  width: calc(100% - var(--fab-size) * 0.35);
  box-sizing: border-box;
  margin-top: 14px;
  height: 40px;
  border: none;
  border-radius: 6px;
  background: #eef2f6;
  color: #52606d;
  font-size: 13px;
  font-weight: 600;
}

.login-cancel:hover {
  background: #e3e8ee;
}

.login-error {
  margin-bottom: 12px;
  color: #dc3545;
  font-size: 13px;
  line-height: 1.4;
}

.login-otp-hint {
  margin: 0 0 14px;
  font-size: 13px;
  line-height: 1.55;
  color: #6b7785;
}

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

@media (max-width: 900px) {
  .login-shell {
    grid-template-columns: 1fr;
    align-content: center;
    justify-items: stretch;
    gap: 36px;
    padding: 40px 20px;
  }

  .login-hero {
    text-align: center;
    max-width: none;
    padding-right: 0;
  }

  .login-side {
    justify-content: center;
    padding-right: 28px;
  }

  .login-card {
    width: min(100%, 420px);
  }
}

@media (max-width: 480px) {
  .login-hero-title {
    font-size: 26px;
  }

  .login-side {
    padding-right: 20px;
  }

  .login-card {
    --card-pad-x: 28px;
    --fab-size: 50px;
    width: min(100%, 100%);
    min-height: 280px;
    padding: 40px var(--card-pad-x) 72px;
  }

  .login-fab .material-symbols-outlined {
    font-size: 22px;
  }
}
