/* 로그인 모달 — Figma 2290:23 (440 기준 절대수치) */
.r2go-login-modal[hidden] {
    display: none !important;
}
.r2go-login-modal {
    position: fixed;
    inset: 0;
    /* The dialog must cover the fixed bottom navigation, never sit under it. */
    z-index: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}
.r2go-login-modal__dim {
    position: absolute;
    inset: 0;
    /* Figma 2290:108 회색음영 */
    background: rgba(217, 217, 217, 0.8);
    border: 0;
    padding: 0;
    cursor: pointer;
}
.r2go-login-modal__panel {
    /* Figma 2290:109 — 369×652, radius 10, border #3887fe */
    position: relative;
    z-index: 1;
    width: 369px;
    max-width: calc(100vw - 40px);
    height: min(652px, calc(var(--r2go-viewport-height, 100dvh) - 32px));
    max-height: calc(var(--r2go-viewport-height, 100dvh) - 32px);
    overflow: auto;
    /* content x=76, panel x=38 → 좌우 38 */
    padding: 26px 38px 40px;
    border: 1px solid #3887fe;
    border-radius: 10px;
    background: #fff;
    box-sizing: border-box;
}
.r2go-login-modal__close {
    /* close ~ right 407-15=392 → panel 내 약 15px */
    position: absolute;
    top: 15px;
    right: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}
.r2go-login-modal__close img {
    display: block;
    width: 15px;
    height: 17px;
    object-fit: contain;
}
.r2go-login-modal__title {
    margin: 0 0 10px;
    padding-right: 28px;
    font-size: 24px;
    font-weight: 600;
    line-height: 24px;
    color: #646464;
}
.r2go-login-modal__lead {
    margin: 0 0 36px;
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    color: #646464;
}
.r2go-login-modal__field {
    display: grid;
    gap: 0;
    margin: 0 0 28px;
}
.r2go-login-modal__label {
    display: block;
    margin: 0 0 6px;
    font-size: 20px;
    font-weight: 600;
    line-height: 24px;
    color: #646464;
}
.r2go-login-modal__input {
    /* Figma 2290:111/112 — 294×52 */
    display: block;
    width: 100%;
    max-width: 294px;
    height: 52px;
    min-height: 52px;
    padding: 0 14px;
    border: 1px solid rgba(156, 163, 175, 0.5);
    border-radius: 5px;
    background: #fff;
    color: #111;
    font: inherit;
    font-size: 20px;
    font-weight: 400;
    line-height: 24px;
    box-sizing: border-box;
}
.r2go-login-modal__input::placeholder {
    color: rgba(156, 163, 175, 0.5);
}
.r2go-login-modal__submit {
    /* Figma 2290:120 — 294×52, radius 30 */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    max-width: 294px;
    height: 52px;
    min-height: 52px;
    margin-top: 8px;
    border: 0;
    border-radius: 30px;
    background: #3887fe;
    color: #fff;
    font: inherit;
    font-size: 20px;
    font-weight: 600;
    line-height: 24px;
    cursor: pointer;
}
.r2go-login-modal__submit-icon {
    display: block;
    width: 21px;
    height: 21px;
    flex-shrink: 0;
    object-fit: contain;
}
.r2go-login-modal__links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 22px 0 0;
    max-width: 294px;
    font-size: 15px;
    line-height: 24px;
    color: #9ca3af;
}
.r2go-login-modal__links span[aria-disabled="true"] {
    cursor: default;
}
.r2go-login-modal__links a {
    color: #0b2385;
    text-decoration: none;
    font-weight: 500;
}
.r2go-login-modal__links a:hover {
    text-decoration: underline;
}
.r2go-login-modal__sep {
    width: 1px;
    height: 10px;
    background: #9ca3af;
}
.r2go-login-modal__errors {
    margin: 0 0 14px;
    max-width: 294px;
    padding: 10px 12px;
    border-radius: 8px;
    background: #fff1f0;
    color: #cf202f;
    font-size: 14px;
    list-style: none;
}

html.r2go-login-modal-open,
html.r2go-login-modal-open body {
    overflow: hidden;
}

@media (max-width: 400px) {
    .r2go-login-modal__panel {
        width: calc(100vw - 40px);
        height: auto;
        min-height: min(652px, calc(100dvh - 40px));
        padding: 24px 20px 32px;
    }
}
