:root {
    --au-bg: #f4f5f7;
    --au-surface: #fff;
    --au-sunken: #f7f8fa;
    --au-line: #e1e4ea;
    --au-ink: #1e2130;
    --au-ink-hover: #0f1117;
    --au-label: #3d434f;
    --au-muted: #555c69;
    --au-subtle: #6b7280;
    --au-primary: #3451d1;
    --au-primary-hover: #2a41a8;
    --au-primary-soft: #eef1fd;
    --au-danger: #b91c1c;
    --au-btn: #1e2130;
    --au-btn-hover: #0f1117;
    --au-focus: rgba(30, 33, 48, .07);
    --au-shade: linear-gradient(180deg, rgba(15, 20, 40, 0) 40%, rgba(15, 20, 40, .35));
}

body.auth-body {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: max(48px, calc(50vh - 236px)) 16px 32px;
    background: var(--au-bg);
    color: var(--au-ink);
    font-family: Pretendard, -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', sans-serif;
    font-size: 14px;
    letter-spacing: -.02em;
    word-break: keep-all;
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
}

.auth-card {
    position: relative;
    width: 100%;
    max-width: 760px;
    min-height: 440px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--au-surface);
    border: 1px solid #e8eaee;
    border-radius: 18px;
    box-shadow: 0 10px 30px -14px rgba(17, 24, 39, .16);
    padding: 28px 52px 28px 360px;
}

.auth-card::before {
    content: "";
    position: absolute;
    top: 8px;
    bottom: 8px;
    left: 8px;
    width: 300px;
    border-radius: 12px;
    background: #ccc center / cover no-repeat;
    background-image: var(--au-shade), url(/bootstrap/img/galmuri_2-a3e09b20c9444d205728c2ac5f7d351b.png);
}

body.auth-login .auth-card::before {
    background-image: var(--au-shade), url(/bootstrap/img/galmuri_1-8bacb9e73a6c0a44971690aeb8fa645a.png);
}

.auth-head {
    margin-bottom: 22px;
    text-align: center;
}

body.auth-login .auth-head {
    margin-bottom: 28px;
}

.auth-brand {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin: 0;
}

.auth-logo {
    display: block;
    flex-shrink: 0;
    width: 105px;
    height: 17px;
    overflow: hidden;
}

.auth-logo img {
    display: block;
    width: 124px;
    max-width: none;
    margin: -37.8px 0 0 -9.3px;
}

.auth-brand-text {
    display: flex;
    align-items: center;
    height: 12px;
    padding-left: 7px;
    border-left: 1px solid #dfe2e7;
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: -.02em;
    white-space: nowrap;
    color: var(--au-muted);
}

.auth-title {
    margin: 22px 0 0;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -.03em;
    color: var(--au-ink);
    line-height: 28px;
}

.auth-desc {
    margin: 4px 0 0;
    font-size: 13px;
    color: var(--au-subtle);
    line-height: 20px;
}

.auth-foot {
    margin-top: 14px;
    font-size: 11.5px;
    color: #9aa1ad;
    text-align: center;
}

.auth-card .form-group {
    margin-bottom: 12px;
}

.auth-label {
    display: flex;
    margin: 0 0 6px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--au-label);
}

.auth-card form.user .form-control-user,
.auth-card .form-control {
    height: 44px;
    padding: 0 12px;
    font-size: 14px;
    letter-spacing: -.01em;
    color: var(--au-ink);
    background: var(--au-surface);
    border: 1px solid var(--au-line);
    border-radius: 10px;
    box-shadow: none;
    transition: border-color .15s, box-shadow .15s;
}

.auth-card .form-control:hover,
.auth-card .select-custom-box button:hover {
    border-color: #c3c8d2;
}

.auth-pw {
    position: relative;
}

.auth-card form.user .auth-pw .form-control-user {
    padding-right: 44px;
}

.auth-eye {
    position: absolute;
    top: 3px;
    right: 3px;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: none;
    color: #9aa1ad;
    cursor: pointer;
}

.auth-eye:hover,
.auth-eye[aria-pressed="true"] {
    color: var(--au-ink);
}

.auth-eye:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(30, 33, 48, .12);
}

.auth-eye svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.auth-opt {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin: -2px 0 14px;
    font-size: 12.5px;
    color: var(--au-muted);
}

.auth-save-id {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    cursor: pointer;
}

.auth-opt a {
    margin-left: auto;
    color: var(--au-muted);
}

.auth-opt a:hover {
    color: var(--au-ink);
    text-decoration: none;
}

.auth-card .form-control::placeholder,
.auth-card .input-control::placeholder {
    color: #9ca3af;
}

.auth-card .form-control:focus,
.auth-card .select-custom-box button:focus-visible {
    border-color: var(--au-btn);
    box-shadow: 0 0 0 3px var(--au-focus);
    outline: none;
}

.auth-card .form-control:disabled {
    background: var(--au-sunken);
    color: var(--au-muted);
}

.auth-card form.user a.form-control {
    color: var(--au-subtle);
    cursor: pointer;
    text-decoration: none;
}

.auth-card .btn {
    background-image: none;
    box-shadow: none;
}

.auth-card form.user .btn-user,
.auth-card .btn-block {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 44px;
    margin: 4px 0 0;
    padding: 0 16px;
    font-size: 14.5px;
    font-weight: 600;
    letter-spacing: -.01em;
    line-height: 1;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color .15s, border-color .15s, box-shadow .15s, transform .1s;
}

.auth-card .btn-block:active {
    transform: translateY(1px);
}

.auth-card .btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(30, 33, 48, .2);
}

.auth-card form.user .btn-block + .btn-block {
    margin-top: 8px;
}

.auth-card .btn-primary {
    background-color: var(--au-btn);
    border: 1px solid var(--au-btn);
    color: #fff;
}

.auth-card .btn-primary:hover,
.auth-card .btn-primary:focus {
    background-color: var(--au-btn-hover);
    border-color: var(--au-btn-hover);
    color: #fff;
}

.auth-card .btn-primary:disabled {
    opacity: .5;
    box-shadow: none;
    cursor: default;
}

.auth-card .btn-outline-secondary {
    background: var(--au-surface);
    border: 1px solid var(--au-line);
    color: var(--au-muted);
}

.auth-card .btn-outline-secondary:hover {
    background: var(--au-sunken);
    color: var(--au-ink);
}

.auth-msg {
    margin: 6px 2px 0;
    padding: 0;
    font-size: 12.5px;
    line-height: 1.5;
    color: var(--au-danger);
}

.auth-msg-center {
    text-align: center;
    margin: 12px 0 0;
}

.auth-danger {
    color: var(--au-danger);
}

.auth-links {
    margin-top: 14px;
    text-align: center;
    font-size: 12.5px;
    color: var(--au-subtle);
}

.auth-links a {
    font-weight: 600;
    color: var(--au-ink);
}

.auth-links a:hover {
    color: var(--au-ink);
    text-decoration: underline;
    text-underline-offset: 3px;
}

form.user > .auth-label {
    margin-top: 14px;
}

.auth-req {
    margin-left: 2px;
    color: #c81e1e;
}

.auth-code {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px;
}

.auth-card .auth-code-cell {
    width: 100%;
    min-width: 0;
    height: 48px;
    padding: 0;
    border: 1px solid var(--au-line);
    border-radius: 10px;
    background: var(--au-surface);
    color: var(--au-ink);
    font-family: inherit;
    font-size: 20px;
    font-weight: 700;
    text-align: center;
    font-variant-numeric: tabular-nums;
    caret-color: var(--au-btn);
    transition: border-color .15s, box-shadow .15s;
}

.auth-card .auth-code-cell:focus {
    outline: none;
    border-color: var(--au-btn);
    box-shadow: 0 0 0 3px var(--au-focus);
}

.auth-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 10px 0 14px;
    font-size: 12.5px;
    color: var(--au-subtle);
}

.auth-meta time {
    margin-left: 2px;
    font-weight: 700;
    color: var(--au-primary);
    font-variant-numeric: tabular-nums;
}

.auth-meta b {
    color: var(--au-ink);
}

.auth-card .auth-meta .btn-link {
    margin-left: auto;
    padding: 0;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--au-ink);
    background: none;
    border: 0;
    text-decoration: none;
}

.auth-card .auth-meta .btn-link:hover {
    color: var(--au-btn);
}

.auth-card .auth-meta .btn-link:disabled {
    color: var(--au-subtle);
    opacity: 1;
}

.auth-meta + .auth-msg {
    margin: -6px 2px 12px;
}

.auth-btn-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    gap: 8px;
    margin-top: 4px;
}

.auth-btn-row-one {
    grid-template-columns: 1fr;
}

.auth-card form.user .auth-btn-row .btn-user {
    margin: 0;
}

.auth-pair {
    display: grid;
    gap: 8px;
}

.auth-pair-birth {
    grid-template-columns: 92px minmax(0, 1fr);
}

.auth-pair-addr {
    grid-template-columns: 96px minmax(0, 1fr);
}

.auth-pair-contact {
    grid-template-columns: 124px minmax(0, 1fr);
}

.auth-card form.user .auth-addr-btn {
    display: flex;
    align-items: center;
    width: 100%;
    color: var(--au-subtle);
    text-align: left;
    cursor: pointer;
}

.auth-card .select-custom-box {
    font-size: 14px;
}

.auth-card .select-custom-box button {
    height: 44px;
    padding: 0 40px 0 12px;
    font-size: 14px;
    font-weight: 400;
    line-height: 42px;
    color: var(--au-subtle);
    border: 1px solid var(--au-line);
    border-radius: 10px;
    background: var(--au-surface) url(/bootstrap/img/icon_select-58e5ef64581700954deef0cb6f9531e9.svg) no-repeat right 8px center / 24px 24px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.auth-card .select-custom-box.active button {
    color: var(--au-ink);
}

.auth-card .select-custom-box dl {
    top: 50px;
    z-index: 5;
    margin: 0;
    padding: 4px;
    border: 1px solid var(--au-line);
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(16, 24, 40, .08);
}

.auth-card .select-custom-box dd {
    margin: 0;
}

.auth-card .select-custom-box dl dd a {
    padding: 9px 12px;
    border: 0;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 400;
    color: var(--au-ink);
}

.auth-card .select-custom-box dl dd a:hover {
    background: var(--au-primary-soft);
}

.auth-card .step-indicator {
    display: flex;
    gap: 6px;
    margin-top: 14px;
    text-align: left;
}

.auth-card .step-dot {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 11.5px;
    font-weight: 600;
    color: #9aa1ad;
}

.auth-card .step-dot::before {
    content: "";
    display: block;
    height: 3px;
    border-radius: 2px;
    background: #eceef2;
}

.auth-card .step-dot.done,
.auth-card .step-dot.active {
    color: var(--au-ink);
}

.auth-card .step-dot.done::before,
.auth-card .step-dot.active::before {
    background: var(--au-btn);
}

.auth-card .step-line {
    display: none;
}

.auth-label small {
    margin-left: auto;
    font-size: 12px;
    font-weight: 500;
    color: #8d94a5;
}

.auth-warn {
    display: flex;
    text-align: left;
    gap: 8px;
    align-items: flex-start;
    margin: 12px 0 0;
    padding: 9px 12px;
    border-radius: 10px;
    background: #fff4e5;
    border: 1px solid #f6dfb0;
    color: #9a4b05;
    font-size: 12.5px;
    line-height: 19px;
}

.auth-warn svg {
    flex: none;
    width: 13px;
    height: 13px;
    margin-top: 3px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.auth-card .alert {
    margin-bottom: 14px;
    padding: 9px 12px;
    font-size: 12.5px;
    border-radius: 10px;
    text-align: center;
}

.auth-card .alert-danger {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: var(--au-danger);
}

.auth-card .alert-info {
    background: var(--au-primary-soft);
    border: 1px solid var(--au-primary-soft);
    color: var(--au-primary);
}

@media (max-width: 1023.98px) {
    :root {
        --au-shade: linear-gradient(180deg, rgba(15, 20, 40, .25), rgba(15, 20, 40, 0) 35%, rgba(15, 20, 40, .25));
    }

    body.auth-body {
        justify-content: flex-start;
        padding: 0;
        background: var(--au-surface);
    }

    .auth-card {
        max-width: none;
        min-height: 0;
        justify-content: flex-start;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        padding: 256px max(22px, calc(50% - 218px)) 8px;
    }

    .auth-card::before {
        top: 0;
        right: 0;
        bottom: auto;
        left: 0;
        width: auto;
        height: 250px;
        border-radius: 0;
        background-position: center 40%;
    }

    .auth-card::after {
        content: "";
        position: absolute;
        top: 228px;
        left: 0;
        right: 0;
        height: 22px;
        border-radius: 22px 22px 0 0;
        background: var(--au-surface);
    }

    body.auth-login .auth-head {
        margin-bottom: 24px;
    }

    .auth-card form.user .form-control-user,
    .auth-card .form-control,
    .auth-card .select-custom-box button {
        font-size: 16px;
    }

    .auth-foot {
        margin-top: auto;
        padding: 18px 0 16px;
    }
}
