/*
 * 마사지엠 로그인 전용 디자인
 * 적용 페이지: /bbs/login.php
 */

body.msgm-login-body {
    margin: 0;
    max-width: 100%;
    overflow-x: hidden;
    background: #f5f6f8;
    color: #17191f;
    font-family:
        'Noto Sans KR',
        -apple-system,
        BlinkMacSystemFont,
        'Segoe UI',
        sans-serif;
}

.msgm-login-body *,
.msgm-login-body *::before,
.msgm-login-body *::after {
    box-sizing: border-box;
}

.msgm-login-main {
    width: min(1040px, calc(100% - 32px));
    margin: 0 auto;
    padding: 56px 0 96px;
}

.msgm-login-shell {
    display: grid;
    grid-template-columns: minmax(330px, .92fr) minmax(0, 1.08fr);
    overflow: hidden;
    border: 1px solid #e7e9ee;
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 22px 55px rgba(15, 23, 42, .08);
}

.msgm-login-brand {
    position: relative;
    min-height: 650px;
    overflow: hidden;
    background:
        radial-gradient(
            circle at 82% 15%,
            rgba(255, 255, 255, .18),
            transparent 27%
        ),
        linear-gradient(145deg, #352f78 0%, #6c5ce7 56%, #8e7cff 100%);
    color: #fff;
}

.msgm-login-brand::before,
.msgm-login-brand::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.msgm-login-brand::before {
    right: -105px;
    bottom: -120px;
    width: 330px;
    height: 330px;
    border: 62px solid rgba(255, 255, 255, .08);
}

.msgm-login-brand::after {
    top: -72px;
    left: -82px;
    width: 220px;
    height: 220px;
    background: rgba(255, 255, 255, .05);
}

.msgm-login-brand__inner {
    position: relative;
    z-index: 2;
    display: flex;
    min-height: 650px;
    flex-direction: column;
    padding: 48px 42px 40px;
}

.msgm-login-brand__logo {
    align-self: flex-start;
    color: #fff;
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -.055em;
    text-decoration: none;
}

.msgm-login-brand__eyebrow {
    display: block;
    margin-top: 54px;
    color: rgba(255, 255, 255, .72);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .16em;
}

.msgm-login-brand h1 {
    margin: 12px 0 16px;
    font-size: clamp(29px, 3vw, 40px);
    line-height: 1.26;
    letter-spacing: -.055em;
    word-break: keep-all;
}

.msgm-login-brand > .msgm-login-brand__inner > p {
    margin: 0;
    color: rgba(255, 255, 255, .78);
    font-size: 13px;
    line-height: 1.8;
    word-break: keep-all;
}

.msgm-login-benefits {
    display: grid;
    gap: 12px;
    margin: 34px 0 0;
    padding: 0;
    list-style: none;
}

.msgm-login-benefits li {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 13px 14px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 15px;
    background: rgba(255, 255, 255, .08);
    backdrop-filter: blur(8px);
}

.msgm-login-benefits li > span {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 13px;
    background: rgba(255, 255, 255, .14);
    color: #fff;
    font-size: 15px;
}

.msgm-login-benefits strong,
.msgm-login-benefits small {
    display: block;
}

.msgm-login-benefits strong {
    margin-bottom: 3px;
    color: #fff;
    font-size: 12px;
    font-weight: 900;
}

.msgm-login-benefits small {
    color: rgba(255, 255, 255, .7);
    font-size: 10px;
    line-height: 1.5;
}

.msgm-login-home-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    align-self: flex-start;
    margin-top: auto;
    color: rgba(255, 255, 255, .84);
    font-size: 11px;
    font-weight: 800;
    text-decoration: none;
}

.msgm-login-panel {
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
    padding: 54px 58px;
}

.msgm-login-panel__badge {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    margin-bottom: 12px;
    padding: 0 11px;
    border: 1px solid rgba(108, 92, 231, .15);
    border-radius: 999px;
    background: rgba(108, 92, 231, .06);
    color: #6c5ce7;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .12em;
}

.msgm-login-panel__head h2 {
    margin: 0;
    color: #17191f;
    font-size: 34px;
    line-height: 1.2;
    letter-spacing: -.055em;
}

.msgm-login-panel__head p {
    margin: 9px 0 0;
    color: #808792;
    font-size: 12px;
}

.msgm-login-form {
    display: grid;
    gap: 18px;
    margin-top: 30px;
}

.msgm-login-field {
    display: grid;
    gap: 8px;
}

.msgm-login-field > span {
    color: #3f4650;
    font-size: 11px;
    font-weight: 900;
}

.msgm-login-input-wrap {
    position: relative;
    display: flex;
    height: 52px;
    align-items: center;
    overflow: hidden;
    border: 1px solid #dfe3e8;
    border-radius: 13px;
    background: #fff;
    transition:
        border-color .18s ease,
        box-shadow .18s ease;
}

.msgm-login-input-wrap:focus-within {
    border-color: #6c5ce7;
    box-shadow: 0 0 0 4px rgba(108, 92, 231, .09);
}

.msgm-login-input-wrap > i {
    flex: 0 0 46px;
    color: #a0a6af;
    text-align: center;
    font-size: 14px;
}

.msgm-login-input-wrap input {
    flex: 1;
    min-width: 0;
    height: 50px;
    padding: 0 12px 0 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #22262d;
    font: inherit;
    font-size: 13px;
}

.msgm-login-input-wrap input::placeholder {
    color: #adb2ba;
}

.msgm-password-toggle {
    display: grid;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    place-items: center;
    margin-right: 4px;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #9ba1aa;
    cursor: pointer;
}

.msgm-password-toggle:hover {
    background: #f5f6f8;
    color: #5f6670;
}

.msgm-login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.msgm-auto-login {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #5d6570;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}

.msgm-auto-login input,
.msgm-guest-agree input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.msgm-check-ui {
    position: relative;
    display: grid;
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    place-items: center;
    border: 1px solid #cfd4db;
    border-radius: 6px;
    background: #fff;
}

.msgm-auto-login input:checked + .msgm-check-ui,
.msgm-guest-agree input:checked + .msgm-check-ui {
    border-color: #6c5ce7;
    background: #6c5ce7;
}

.msgm-auto-login input:checked + .msgm-check-ui::after,
.msgm-guest-agree input:checked + .msgm-check-ui::after {
    content: '';
    width: 9px;
    height: 5px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: translateY(-1px) rotate(-45deg);
}

.msgm-login-options > a {
    color: #6c5ce7;
    font-size: 11px;
    font-weight: 800;
    text-decoration: none;
}

.msgm-login-submit {
    display: inline-flex;
    width: 100%;
    height: 54px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin-top: 2px;
    border: 0;
    border-radius: 13px;
    background: linear-gradient(135deg, #6c5ce7, #806cf3);
    color: #fff;
    font: inherit;
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 11px 24px rgba(108, 92, 231, .22);
    transition:
        transform .18s ease,
        box-shadow .18s ease;
}

.msgm-login-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 29px rgba(108, 92, 231, .27);
}

.msgm-login-register {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    color: #888f99;
    font-size: 11px;
}

.msgm-login-register a {
    color: #6c5ce7;
    font-weight: 900;
    text-decoration: none;
}

.msgm-login-divider {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 26px 0 18px;
}

.msgm-login-divider::before {
    content: '';
    position: absolute;
    right: 0;
    left: 0;
    height: 1px;
    background: #eceef2;
}

.msgm-login-divider span {
    position: relative;
    z-index: 1;
    padding: 0 12px;
    background: #fff;
    color: #abb0b8;
    font-size: 10px;
}

.msgm-login-social:empty,
.msgm-login-social #sns_login:empty {
    display: none;
}

.msgm-login-social #sns_login {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
}

.msgm-login-social #sns_login h3 {
    display: none !important;
}

.msgm-login-social .sns-wrap {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px !important;
}

.msgm-login-social .sns-icon {
    display: inline-flex !important;
    min-height: 44px !important;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin: 0 !important;
    padding: 0 12px !important;
    border-radius: 11px !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    line-height: normal !important;
    text-decoration: none !important;
}

.msgm-login-social .sns-icon .txt,
.msgm-login-social .sns-icon .txt i {
    font-style: normal !important;
    font-size: 11px !important;
}

.msgm-login-note {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 18px;
    padding: 12px 13px;
    border-radius: 11px;
    background: #f7f8fa;
    color: #8b929c;
    font-size: 10px;
    line-height: 1.6;
}

.msgm-login-note i {
    margin-top: 2px;
    color: #6c5ce7;
}

.msgm-guest-box {
    margin-top: 22px;
    padding: 26px;
    border: 1px solid #e7e9ee;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .045);
}

.msgm-guest-box > div:first-child > span {
    color: #6c5ce7;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .1em;
}

.msgm-guest-box h2 {
    margin: 7px 0 7px;
    font-size: 22px;
    letter-spacing: -.04em;
}

.msgm-guest-box p {
    margin: 0;
    color: #7d848e;
    font-size: 11px;
}

.msgm-guest-privacy {
    max-height: 180px;
    margin: 18px 0;
    padding: 16px;
    overflow: auto;
    border: 1px solid #e3e6ea;
    border-radius: 12px;
    background: #fafbfc;
    color: #666e79;
    font-size: 11px;
    line-height: 1.7;
}

.msgm-guest-agree {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #5f6670;
    font-size: 11px;
    cursor: pointer;
}

.msgm-guest-submit,
.msgm-guest-order-form button {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    margin-top: 18px;
    padding: 0 18px;
    border: 0;
    border-radius: 11px;
    background: #6c5ce7;
    color: #fff;
    font: inherit;
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
}

.msgm-guest-order-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
    gap: 10px;
    margin-top: 18px;
}

.msgm-guest-order-form input {
    min-width: 0;
    height: 46px;
    padding: 0 13px;
    border: 1px solid #dfe3e8;
    border-radius: 11px;
    outline: 0;
    font: inherit;
    font-size: 12px;
}

.msgm-guest-order-form button {
    margin: 0;
}

@media (max-width: 820px) {
    .msgm-login-main {
        width: min(680px, calc(100% - 24px));
        padding: 26px 0 84px;
    }

    .msgm-login-shell {
        grid-template-columns: 1fr;
        border-radius: 20px;
    }

    .msgm-login-brand {
        min-height: auto;
    }

    .msgm-login-brand__inner {
        min-height: auto;
        padding: 29px 24px 26px;
    }

    .msgm-login-brand__eyebrow {
        margin-top: 30px;
    }

    .msgm-login-brand h1 {
        font-size: 29px;
    }

    .msgm-login-benefits {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
        margin-top: 24px;
    }

    .msgm-login-benefits li {
        display: block;
        padding: 12px;
    }

    .msgm-login-benefits li > span {
        margin-bottom: 8px;
    }

    .msgm-login-benefits small {
        display: none;
    }

    .msgm-login-home-link {
        margin-top: 22px;
    }

    .msgm-login-panel {
        padding: 34px 26px 36px;
    }
}

@media (max-width: 520px) {
    .msgm-login-main {
        width: calc(100% - 20px);
        padding-top: 18px;
    }

    .msgm-login-shell {
        border-radius: 16px;
    }

    .msgm-login-brand__inner {
        padding: 24px 18px 22px;
    }

    .msgm-login-brand__logo {
        font-size: 21px;
    }

    .msgm-login-brand__eyebrow {
        margin-top: 22px;
    }

    .msgm-login-brand h1 {
        font-size: 25px;
    }

    .msgm-login-brand > .msgm-login-brand__inner > p {
        font-size: 11px;
    }

    .msgm-login-benefits {
        display: none;
    }

    .msgm-login-home-link {
        margin-top: 18px;
    }

    .msgm-login-panel {
        padding: 29px 18px 30px;
    }

    .msgm-login-panel__head h2 {
        font-size: 29px;
    }

    .msgm-login-options {
        align-items: flex-start;
        flex-direction: column;
        gap: 11px;
    }

    .msgm-login-social .sns-wrap {
        grid-template-columns: 1fr;
    }

    .msgm-guest-box {
        padding: 20px 16px;
        border-radius: 16px;
    }

    .msgm-guest-order-form {
        grid-template-columns: 1fr;
    }
}
