/**
 * R2GO Login Modal & Page - Kurly Real Style 1:1
 * Palette: Kurly Deep Purple #5f0080, Pure White #fff, Neutral #333, Security Banner #f0f4f9
 */

.r2go-login-modal[hidden] {
    display: none !important;
}

.r2go-login-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
}

.r2go-login-modal__dim {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    border: 0;
    padding: 0;
    cursor: pointer;
}

.r2go-login-modal__panel {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 380px;
    max-height: calc(100dvh - 32px);
    overflow-y: auto;
    padding: 28px 24px 36px;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    font-family: Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.r2go-login-modal__panel--standalone {
    margin: 40px auto !important;
    border: 1px solid #eeeeee;
}

.r2go-login-modal__close {
    position: absolute;
    top: 18px;
    right: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    color: #333333;
    opacity: 0.8;
}

.r2go-login-modal__close:hover {
    opacity: 1;
}

.r2go-login-modal__title {
    margin: 0 0 16px;
    font-size: 20px;
    font-weight: 700;
    color: #222222;
    letter-spacing: -0.4px;
}

/* 1. 상단 보안 안내 배너 (컬리 실물) */
.r2go-login-modal__security-banner {
    background-color: #f0f4f9;
    border-radius: 8px;
    padding: 14px 16px;
    margin-bottom: 24px;
    text-align: center;
}

.r2go-login-modal__security-banner p {
    margin: 0;
    font-size: 13px;
    line-height: 1.45;
    color: #333333;
    font-weight: 500;
    letter-spacing: -0.3px;
}

/* 2. 아이디 / 비밀번호 입력창 (컬리 스타일 박스) */
.r2go-login-modal__inputs-container {
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 20px;
    background: #ffffff;
}

.r2go-login-modal__field {
    position: relative;
}

.r2go-login-modal__field:not(:last-child) {
    border-bottom: 1px solid #eeeeee;
}

.r2go-login-modal__input {
    width: 100%;
    height: 38px;
    padding: 0 14px;
    border: none;
    font-size: 13.5px;
    color: #222222;
    background: transparent;
    box-sizing: border-box;
    outline: none;
}

.r2go-login-modal__input::placeholder {
    color: #aaaaaa;
    font-size: 13px;
}

.r2go-login-modal__input:focus {
    background-color: #faf8fc;
}

/* 3. 컬리 시그니처 버튼 (로그인 + 회원가입) */
.r2go-login-modal__actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.r2go-login-modal__submit {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 40px;
    border: none;
    border-radius: 6px;
    background-color: #5f0080;
    color: #ffffff;
    font-size: 14.5px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.15s;
}

.r2go-login-modal__submit:hover {
    background-color: #4c0066;
}

.r2go-login-modal__signup-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 40px;
    border: 1px solid #5f0080;
    border-radius: 6px;
    background-color: #ffffff;
    color: #5f0080;
    font-size: 14.5px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    box-sizing: border-box;
    transition: background-color 0.15s;
}

.r2go-login-modal__signup-btn:hover {
    background-color: #f9f5fa;
}

/* 4. 아이디 찾기 / 비밀번호 찾기 */
.r2go-login-modal__links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 13px;
    color: #666666;
}

.r2go-login-modal__links a {
    color: #666666;
    text-decoration: none;
    transition: color 0.15s;
}

.r2go-login-modal__links a:hover {
    color: #222222;
    text-decoration: underline;
}

.r2go-login-modal__sep {
    color: #cccccc;
    font-size: 12px;
}

/* 5. 에러 & 플래시 */
.r2go-login-modal__errors {
    margin: 0 0 16px;
    padding: 12px 14px;
    border-radius: 6px;
    background: #fff4f4;
    border: 1px solid #ffd2d2;
    color: #ee6a7b;
    font-size: 13px;
    list-style: none;
}

.r2go-login-modal__flash {
    margin: 0 0 16px;
    padding: 12px 14px;
    border-radius: 6px;
    background: #f7eff9;
    border: 1px solid #e9d3ee;
    color: #5f0080;
    font-size: 13px;
}

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