/* SkyWebRace patch 658 - 웹 회원가입/승인대기 UI */
body.login-branding-page .signup-open-button {
    width: 100%;
    margin-top: 12px;
    min-height: 48px;
    border: 1px solid rgba(172, 126, 30, .62);
    border-radius: 5px;
    background: rgba(255, 255, 255, .88);
    color: #7a5717;
    font-size: 17px;
    font-weight: 800;
    cursor: pointer;
    transition: .18s ease;
}
body.login-branding-page .signup-open-button:hover {
    background: #fff9e9;
    transform: translateY(-1px);
}
body.login-branding-page .signup-guide {
    margin: 8px 0 0;
    color: #766743;
    font-size: 12px;
    text-align: center;
}

.auth-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 22px;
}
.auth-modal.show { display: flex; }
.auth-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 18, 30, .58);
    backdrop-filter: blur(5px);
}
.auth-dialog {
    position: relative;
    width: min(520px, calc(100vw - 32px));
    border: 1px solid rgba(202, 156, 55, .65);
    border-radius: 18px;
    background: linear-gradient(180deg, #fffefb 0%, #fffaf0 100%);
    box-shadow: 0 28px 80px rgba(0, 0, 0, .28), 0 0 0 1px rgba(255,255,255,.65) inset;
    padding: 30px 32px 28px;
    color: #20262f;
    animation: authDialogIn .18s ease-out;
}
@keyframes authDialogIn {
    from { transform: translateY(10px) scale(.985); opacity: .55; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}
.auth-dialog-close {
    position: absolute;
    right: 16px;
    top: 13px;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #6f6f6f;
    font-size: 29px;
    line-height: 30px;
    cursor: pointer;
}
.auth-dialog-close:hover { background: #f1eadc; color: #222; }
.auth-dialog-icon {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    margin: 0 auto 13px;
    border-radius: 20px;
    background: linear-gradient(145deg, #0d3772, #1d569c);
    box-shadow: 0 10px 24px rgba(13,55,114,.25);
    color: white;
    font-size: 31px;
    font-weight: 900;
}
.auth-dialog h2 {
    margin: 0;
    color: #0e356c;
    text-align: center;
    font-size: 27px;
    letter-spacing: -.5px;
}
.auth-dialog-subtitle {
    margin: 8px auto 20px;
    max-width: 420px;
    color: #75674e;
    text-align: center;
    font-size: 14px;
    line-height: 1.55;
}
.register-error, .register-inline-error {
    margin: 0 0 14px;
    border: 1px solid #f1b0aa;
    border-radius: 9px;
    background: #fff0ee;
    color: #a92b20;
    padding: 10px 12px;
    font-size: 14px;
    font-weight: 700;
}
.register-form {
    display: grid;
    gap: 13px;
}
.register-form label { display: grid; gap: 6px; }
.register-form label > span {
    color: #544525;
    font-size: 14px;
    font-weight: 800;
}
.register-form input {
    width: 100%;
    box-sizing: border-box;
    min-height: 48px;
    border: 1px solid #c8b27b;
    border-radius: 8px;
    background: #fff;
    padding: 0 13px;
    font-size: 16px;
    outline: none;
}
.register-form input:focus {
    border-color: #bc8a21;
    box-shadow: 0 0 0 3px rgba(188,138,33,.14);
}
.auth-dialog-actions {
    display: grid;
    grid-template-columns: 1fr 1.35fr;
    gap: 10px;
    margin-top: 8px;
}
.auth-dialog-actions.single { grid-template-columns: 1fr; }
.auth-btn {
    min-height: 48px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 900;
    cursor: pointer;
}
.auth-btn.primary {
    border: 1px solid #9a6c10;
    background: linear-gradient(180deg, #d4a52e 0%, #b98416 100%);
    color: #fff;
    box-shadow: 0 5px 14px rgba(156,111,18,.22);
}
.auth-btn.secondary {
    border: 1px solid #c7c7c7;
    background: #fff;
    color: #555;
}
.message-dialog { max-width: 480px; text-align: center; }
.message-dialog.success .auth-dialog-icon { background: linear-gradient(145deg, #198754, #2cab70); }
.message-dialog.pending .auth-dialog-icon { background: linear-gradient(145deg, #b67a0e, #d5a331); }
.message-copy {
    margin: 18px auto 22px;
    color: #40392d;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.7;
    white-space: pre-line;
}

@media (max-width: 700px) {
    .auth-modal { padding: 12px; }
    .auth-dialog { padding: 25px 18px 20px; border-radius: 15px; }
    .auth-dialog h2 { font-size: 23px; }
    .auth-dialog-icon { width: 56px; height: 56px; font-size: 27px; }
    .register-form input { font-size: 16px; }
    .auth-dialog-actions { grid-template-columns: 1fr 1fr; }
}

/* patch 658 - 로그인 옵션 옆 [회원가입] 링크 */
body.login-branding-page .remember-signup-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}
body.login-branding-page .remember-signup-row > label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
}
body.login-branding-page .signup-inline-link {
    flex: 0 0 auto;
    border: 0;
    background: transparent;
    padding: 2px 0;
    color: #0d4d91;
    font: inherit;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    text-decoration: none;
}
body.login-branding-page .signup-inline-link:hover,
body.login-branding-page .signup-inline-link:focus-visible {
    color: #b47a0e;
    text-decoration: underline;
    outline: none;
}

@media (max-width: 700px) {
    body.login-branding-page .remember-signup-row {
        gap: 10px;
    }
    body.login-branding-page .signup-inline-link {
        font-size: 13px;
    }
}
