/* =====================================================================
   YMS Auth — 로그인 화면 전용 스타일
   - yms-landing.css 를 먼저 불러온 뒤 사용 (토큰 --l-* 과 .l-btn 을 재사용)
   - 좌: 브랜드 패널(데스크톱) / 우: 입력 폼
   ===================================================================== */

/* ---------- 레이아웃 ---------- */
.a-shell {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1fr;
  background: var(--l-bg);
}
@media (min-width: 992px) {
  .a-shell { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
}

/* ---------- 좌측 브랜드 패널 ---------- */
.a-side {
  position: relative; isolation: isolate; overflow: hidden;
  display: none;
  flex-direction: column;
  padding: 48px 44px;
  background: linear-gradient(150deg, #073c86 0%, var(--l-navy) 55%, #06305f 100%);
  color: #fff;
}
@media (min-width: 992px) { .a-side { display: flex; } }
@media (min-width: 1280px) { .a-side { padding: 56px 60px; } }

.a-side__blobs { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.a-side__blobs i {
  position: absolute; display: block; filter: blur(60px);
  animation: a-drift 18s ease-in-out infinite alternate;
}
.a-side__blobs i:nth-child(1) {
  width: 30vw; height: 30vw; min-width: 300px; min-height: 300px;
  right: -12%; top: -10%; opacity: .5;
  background: radial-gradient(circle, var(--l-amber), transparent 66%);
}
.a-side__blobs i:nth-child(2) {
  width: 26vw; height: 26vw; min-width: 260px; min-height: 260px;
  left: -14%; bottom: -8%; opacity: .55; animation-delay: -7s;
  background: radial-gradient(circle, var(--l-teal), transparent 66%);
}
@keyframes a-drift {
  from { transform: translate3d(0,0,0) scale(1); }
  to   { transform: translate3d(4%, -5%, 0) scale(1.14); }
}

.a-side__logo { display: inline-flex; align-items: center; gap: 14px; }
.a-side__logo img { height: 56px; width: auto; filter: brightness(0) invert(1); }
.a-side__logo span {
  font-size: 20px; font-weight: 800; color: #fff;
  padding-left: 14px; border-left: 2px solid var(--l-amber);
}

.a-side__body { margin-block: auto; padding-block: 40px; }  /* 로고와 카피라이트 사이 중앙 정렬 */
.a-side__body h1 {
  color: #fff; font-size: clamp(28px, 2.6vw, 38px);
  line-height: 1.4; letter-spacing: -.026em; word-break: keep-all;
}
.a-side__body p {
  margin-top: 18px; max-width: 26em;
  font-size: 16px; line-height: 1.85; color: #b9cde8; word-break: keep-all;
}

.a-side__list { margin-top: 34px; display: grid; gap: 14px; }
.a-side__list li { display: flex; align-items: flex-start; gap: 12px; font-size: 15px; color: #dbe7f6; }
.a-side__list svg { width: 22px; height: 22px; flex: none; margin-top: 2px; color: var(--l-amber); }

.a-side__foot { font-size: 12.5px; color: #90aacd; }

/* ---------- 우측 폼 영역 ---------- */
.a-main {
  display: flex; flex-direction: column;
  padding: 24px 20px calc(28px + env(safe-area-inset-bottom));
  background: var(--l-cream);
}
@media (min-width: 992px) { .a-main { padding: 40px; background: var(--l-bg); } }

.a-back {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 16px 0 12px;
  border-radius: var(--l-r-pill);
  font-size: 14px; font-weight: 700; color: var(--l-muted);
  transition: color var(--l-t), background var(--l-t);
}
.a-back:hover { color: var(--l-navy); background: var(--l-bg-2); }
.a-back svg { width: 18px; height: 18px; }

.a-center {
  flex: 1;
  display: flex; flex-direction: column; justify-content: center;
  padding-block: 24px;
}

.a-card {
  width: 100%; max-width: 440px; margin-inline: auto;
}
@media (max-width: 991.98px) {
  .a-card {
    padding: 32px 24px;
    border-radius: var(--l-r-lg);
    background: #fff;
    border: 1px solid var(--l-border);
    box-shadow: var(--l-sh-md);
  }
}

/* 모바일에서만 보이는 카드 상단 로고 */
.a-card__logo { display: flex; justify-content: center; margin-bottom: 26px; }
.a-card__logo img { height: 58px; width: auto; }
@media (min-width: 992px) { .a-card__logo { display: none; } }

.a-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px 8px 12px;
  border-radius: var(--l-r-pill);
  background: var(--l-amber-soft); color: #8a5a00;
  font-size: 13px; font-weight: 700;
}
.a-badge svg { width: 16px; height: 16px; flex: none; color: var(--l-amber); }
.a-badge--teal { background: var(--l-teal-soft); color: #16697a; }
.a-badge--teal svg { color: var(--l-teal); }

.a-card h1 {
  margin-top: 18px;
  font-size: clamp(26px, 5vw, 32px);
  letter-spacing: -.028em; line-height: 1.36;
}
.a-card > p {
  margin-top: 12px; font-size: 15px; line-height: 1.75; color: var(--l-muted);
}

/* ---------- 폼 ---------- */
.a-form { margin-top: 32px; display: grid; gap: 20px; }
.a-field label {
  display: block; margin-bottom: 9px;
  font-size: 14px; font-weight: 700; color: var(--l-heading);
}
.a-input {
  position: relative; display: flex; align-items: center;
}
.a-input > svg {
  position: absolute; left: 17px;
  width: 20px; height: 20px; color: var(--l-faint, #9aa9bd);
  pointer-events: none; transition: color var(--l-t);
}
.a-input input {
  width: 100%;
  min-height: 56px;
  padding: 0 18px 0 50px;
  border: 1.5px solid var(--l-border);
  border-radius: var(--l-r-md);
  background: #fff;
  font: inherit; font-size: 16px;    /* 16px 미만이면 iOS 에서 확대됨 */
  color: var(--l-heading);
  transition: border-color var(--l-t), box-shadow var(--l-t), background var(--l-t);
  -webkit-appearance: none; appearance: none;
}
.a-input input::placeholder { color: #a8b4c4; font-weight: 400; }
.a-input input:hover { border-color: #cfdae7; }
.a-input input:focus {
  outline: none;
  border-color: var(--l-teal);
  box-shadow: 0 0 0 4px rgba(61,160,179,.16);
}
.a-input:focus-within > svg { color: var(--l-teal); }

/* 비밀번호 표시 토글 */
.a-eye {
  position: absolute; right: 8px;
  width: 42px; height: 42px; display: grid; place-items: center;
  border-radius: 12px; color: var(--l-muted);
  transition: background var(--l-t), color var(--l-t);
}
.a-eye:hover { background: var(--l-bg-2); color: var(--l-navy); }
.a-eye svg { width: 21px; height: 21px; }
.a-input--pwd input { padding-right: 58px; }

.a-form .l-btn { margin-top: 6px; width: 100%; }

.a-hint {
  margin-top: 22px; padding: 14px 16px;
  border-radius: var(--l-r-md);
  background: var(--l-bg-2); border: 1px solid var(--l-border);
  display: flex; align-items: flex-start; gap: 11px;
  font-size: 13.5px; line-height: 1.7; color: var(--l-muted);
}
.a-hint svg { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--l-teal); }

.a-copy {
  margin-top: 28px;
  font-size: 12.5px; color: var(--l-muted); text-align: center;
}
@media (min-width: 992px) { .a-copy { text-align: right; } }

/* ---------- 접근성 ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}
