/* =====================
   Login Page Styles - YOURPAY (화면설계 AU-01 로그인 기준)
   ===================== */

body.login-page {
    --au-ink: #1A1D21;
    --au-muted: #5B6168;
    --au-line: #E2E0D9;
    --au-bg: #F4F3EF;
    --au-navy: #16222C;
    --au-navy-2: #24394A;
    --au-pri: #1D5C8A;
    --au-pri-hover: #123E5E;
    --au-accent: #4A8FC0;
    --au-warn: #A8531A;
    --au-warn-soft: #FBEEE3;

    margin: 0;
    min-height: 100vh;
    background: var(--au-bg);
    color: var(--au-ink);
    font-family: var(--font-sans);
    font-size: 14px;
}

body.login-page a { color: var(--au-pri); }
body.login-page a:hover { color: var(--au-pri-hover); }
body.login-page :focus-visible { outline: 3px solid var(--au-accent); outline-offset: 2px; }

.auth {
    display: flex;
    min-height: 100vh;
}

/* =====================
   Brand Panel (Left)
   ===================== */

.auth-brand {
    width: 560px;
    flex-shrink: 0;
    background: var(--au-navy);
    color: #fff;
    padding: 56px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 32px;
}

.auth-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 17px;
}

.auth-logo i {
    font-style: normal;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: var(--au-pri);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-logo.dark { color: var(--au-ink); font-size: 15px; }

/* 회사 로그인 CI 이미지: 어두운 브랜드 패널 위에 그대로 표시 (흰 글씨 · 투명 배경 이미지 권장),
   밝은 바탕인 모바일 상단은 남색 상자를 깔아 같은 이미지가 보이도록 */
/* 원본 크기와 관계없이 PC 는 가로 500px(패널 560px 가운데, 좌우 30px)에 맞춰 비율 유지 표시,
   모바일은 200 × 48 영역 */
.auth-logo.auth-ci { width: 500px; margin: 0 -26px; }
.auth-logo.auth-ci img { display: block; width: 100%; height: auto; }
.auth-logo.dark.auth-ci { width: auto; margin: 0; }
.auth-logo.dark.auth-ci img { width: 200px; height: 48px; padding: 6px 12px; box-sizing: content-box;
                              border-radius: 10px; background: var(--au-navy); }

.auth-brand-main h2 {
    margin: 0;
    font-size: 38px;
    line-height: 1.35;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.auth-brand-main ul {
    margin: 32px 0 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
    font-size: 17px;
    color: #C9D2D9;
}

.auth-brand-main li { position: relative; padding-left: 18px; }

.auth-brand-main li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 11px;
    width: 8px;
    height: 2px;
    background: var(--au-accent);
}

.auth-notice {
    padding: 14px 16px;
    border-radius: 10px;
    background: var(--au-navy-2);
    color: #DDE5EB;
    font-size: 14px;
    line-height: 1.5;
}

.auth-notice b { margin-right: 6px; }

/* =====================
   Form Panel (Right)
   ===================== */

.auth-form {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 32px;
    padding: 28px 56px;
}

.auth-langrow {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.auth-logo-mobile { display: none; }

.auth-seg {
    display: flex;
    border: 1px solid var(--au-line);
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.auth-seg a {
    height: 38px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    color: var(--au-muted);
    text-decoration: none;
}

body.login-page .auth-seg a:hover { color: var(--au-ink); }
body.login-page .auth-seg a.on { background: var(--au-pri); color: #fff; font-weight: 600; }

.auth-formwrap {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.auth-title {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
}

.auth-error {
    padding: 12px 14px;
    border-radius: 8px;
    background: var(--au-warn-soft);
    color: #7A3A0F;
    font-size: 14px;
    line-height: 1.5;
}

.auth-stack {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.auth-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.auth-field label {
    font-size: 12px;
    color: var(--au-muted);
}

.auth-field input {
    width: 100%;
    height: 48px;
    padding: 0 12px;
    border: 1px solid var(--au-line);
    border-radius: 8px;
    background: #fff;
    color: var(--au-ink);
    font: inherit;
    font-size: 15px;
    box-sizing: border-box;
}

.auth-field input:focus { border-color: var(--au-pri); outline: none; box-shadow: 0 0 0 3px rgba(29, 92, 138, .15); }

.auth-pw {
    display: flex;
    gap: 8px;
    align-items: center;
}

.auth-pw input { flex: 1; min-width: 0; }

.auth-btn {
    height: 40px;
    padding: 0 16px;
    border: 1px solid var(--au-line);
    border-radius: 8px;
    background: #fff;
    color: var(--au-ink);
    font: inherit;
    cursor: pointer;
    white-space: nowrap;
}

.auth-btn:hover { background: #F8F7F3; }
.auth-btn.sm { height: 48px; padding: 0 14px; font-size: 13px; }

.auth-btn.pri {
    background: var(--au-pri);
    border-color: var(--au-pri);
    color: #fff;
    font-weight: 600;
}

.auth-btn.pri:hover { background: var(--au-pri-hover); border-color: var(--au-pri-hover); }

.auth-btn.block {
    width: 100%;
    height: 48px;
    font-size: 15px;
    margin-top: 4px;
}

.auth-join {
    padding-top: 16px;
    border-top: 1px solid var(--au-line);
    font-size: 14px;
    color: var(--au-muted);
}

.auth-foot {
    text-align: center;
    font-size: 13px;
    color: var(--au-muted);
}

/* =====================
   Responsive (화면설계 AU-01 모바일 기준)
   ===================== */

@media (max-width: 1100px) {
    .auth-brand { width: 420px; padding: 44px; }
    .auth-logo.auth-ci { width: 376px; margin: 0 -22px; }   /* 패널 420px 가운데, 좌우 22px */
    .auth-brand-main h2 { font-size: 30px; }
}

@media (max-width: 860px) {
    .auth-brand { display: none; }
    .auth-form { padding: 24px 16px; justify-content: flex-start; gap: 18px; }
    .auth-langrow { justify-content: space-between; }
    .auth-logo-mobile { display: flex; }
    .auth-seg a { height: 34px; }
    .auth-formwrap { margin-top: 12px; }
    .auth-title { font-size: 26px; }
    .auth-btn.block { height: 52px; }
    .auth-foot { margin-top: auto; }
}

/* =====================
   2단계 인증 (AU-02)
   ===================== */

.auth-back { font-size: 14px; text-decoration: none; }

.auth-sub { margin: 0; color: var(--au-muted); }

.auth-otp { display: flex; gap: 8px; align-items: center; }

.auth-otp input {
    width: 56px;
    height: 64px;
    padding: 0;
    text-align: center;
    font: inherit;
    font-size: 26px;
    font-weight: 700;
    border: 1px solid #C9CFD4;
    border-radius: 10px;
    background: #fff;
    color: var(--au-ink);
    box-sizing: border-box;
}

.auth-otp input:focus { border: 2px solid var(--au-pri); outline: none; }

.auth-timer { font-size: 14px; color: var(--au-muted); }
.auth-timer b { color: var(--au-warn); }

.auth-check { display: flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
.auth-check input { width: 18px; height: 18px; accent-color: var(--au-pri); }

.auth-links { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }

.auth-linkbtn {
    border: none;
    background: none;
    padding: 0;
    color: var(--au-pri);
    font: inherit;
    font-size: 14px;
    cursor: pointer;
    text-decoration: underline;
}

.auth-linkbtn:disabled { color: var(--au-muted); text-decoration: none; cursor: default; }

@media (max-width: 860px) {
    .auth-otp input { width: 100%; max-width: 52px; height: 58px; }
}

/* =====================
   회사 선택 (AU-03)
   ===================== */

.auth-colist { display: flex; flex-direction: column; gap: 10px; }

.auth-coitem {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 6px 12px;
    text-align: left;
    padding: 16px 18px;
    border: 1px solid var(--au-line);
    border-radius: 12px;
    background: #fff;
    color: var(--au-ink);
    font: inherit;
    cursor: pointer;
}

.auth-coitem:hover { border-color: var(--au-border-hover, #C9CFD4); }
.auth-coitem.on { border: 2px solid var(--au-pri); background: #F3F7FA; padding: 15px 17px; }

.auth-coname { display: flex; flex-direction: column; gap: 2px; }
.auth-cometa { display: flex; gap: 6px; align-items: flex-start; }

.auth-formwrap .muted { color: var(--au-muted); font-weight: 400; }
.auth-formwrap .small { font-size: 12px; }

.auth-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.auth-badge.blue { background: #E6EEF5; color: var(--au-pri); }
.auth-badge.gray { background: #EEECE6; color: #4A5157; }
.auth-badge.orange { background: var(--au-warn-soft); color: #7A3A0F; }
