.user-login {
    background: #ffffff;
    padding: 64px 0 72px;
}

.user-login__inner {
    width: min(100% - 40px, 980px);
    display: flex;
    justify-content: center;
    margin: 0 auto;
}

.user-login__panel {
    width: min(100%, 440px);
    padding: 38px 36px;
    border: 0;
    border-radius: 8px;
    background: #ffffff;
}

.user-login__head h1 {
    margin: 0;
    color: #202124;
    font-size: 28px;
    line-height: 1.35;
    font-weight: 600;
    text-align: center;
}

.user-login__message {
    margin-top: 18px;
    padding: 12px 14px;
    border-radius: 6px;
    background: #fff3ef;
    color: #c23d23;
    font-size: 14px;
}

.user-login__message.is-success {
    background: #f0f8f1;
    color: #236a37;
}

.user-login__form {
    display: none;
    gap: 16px;
    margin-top: 24px;
}

.user-login__form.is-ready {
    display: grid;
}

.user-login__field {
    display: grid;
    gap: 8px;
    color: #202124;
    font-size: 14px;
    font-weight: 700;
    min-width: 0;
}

.user-login__field > label {
    display: block;
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
}

.user-login__field input {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    border: 1px solid #d9dde5;
    border-radius: 6px;
    color: #202124;
    font-size: 15px;
    font-weight: 400;
    outline: 0;
}

.user-login__field input:focus {
    border-color: #dd4a2c;
}

.user-login__field input::placeholder {
    color: #9aa1aa;
}

.user-login__field input.is-invalid,
.user-login__field.is-invalid input {
    border-color: #c23d23;
    background: #fff8f6;
}

.user-login__field-error {
    margin: 0;
    color: #c23d23;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.45;
    word-break: keep-all;
}

.user-login__field-error[hidden] {
    display: none !important;
}

.user-login__options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    color: #6f7680;
    font-size: 14px;
}

.user-login__check {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
    word-break: keep-all;
}

.user-login__check input {
    width: 16px;
    height: 16px;
    accent-color: #dd4a2c;
}

.user-login__options a {
    color: #4b5563;
    white-space: nowrap;
    word-break: keep-all;
}

.user-login__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 50px;
    margin-top: 2px;
    border-radius: 6px;
    background: #dd4a2c;
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    white-space: nowrap;
    word-break: keep-all;
}

.user-login__submit:disabled {
    cursor: wait;
    background: #b8bdc7;
}

.user-login__join {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #edf0f4;
    color: #6f7680;
    font-size: 14px;
}

.user-login__join a {
    color: #202124;
    font-weight: 700;
}

@media (max-width: 1024px) {
    /* Login */
    .user-login__inner {
        width: min(100% - 40px, 520px);
    }
}

@media (max-width: 768px) {
    /* Login */
    .user-login {
        padding: 44px 0 56px;
    }

    .user-login__inner {
        width: min(100% - 30px, 520px);
    }

    .user-login__panel {
        padding: 30px 22px;
    }
}

@media (max-width: 480px) {
    /* Login */
    .user-login__options,
    .user-login__join {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* 비밀번호 3개월 정책 모달 */
.pw-policy {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.pw-policy[hidden] {
    display: none !important;
}

.pw-policy__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(32, 33, 36, 0.45);
}

.pw-policy__dialog {
    position: relative;
    width: min(100%, 420px);
    padding: 24px 22px 20px;
    border: 1px solid #e5e8eb;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.pw-policy__head h2 {
    margin: 0 0 10px;
    color: #202124;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
}

.pw-policy__head p {
    margin: 0;
    color: #4f5661;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    word-break: keep-all;
}

.pw-policy__error {
    margin: 12px 0 0;
    padding: 10px 12px;
    border: 1px solid #f0c7c0;
    border-radius: 6px;
    background: #fff7f5;
    color: #b42318;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.45;
}

.pw-policy__error[hidden] {
    display: none !important;
}

.pw-policy__choice {
    display: grid;
    gap: 10px;
    margin-top: 20px;
}

.pw-policy__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 16px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
    word-break: keep-all;
    cursor: pointer;
}

.pw-policy__btn:disabled {
    cursor: wait;
    opacity: 0.65;
}

.pw-policy__btn--primary {
    border: 1px solid #dd4a2c;
    background: #dd4a2c;
    color: #ffffff;
}

.pw-policy__btn--secondary {
    border: 1px solid #d9dde5;
    background: #ffffff;
    color: #202124;
}

.pw-policy__form {
    display: grid;
    gap: 14px;
    margin-top: 18px;
}

.pw-policy__form[hidden] {
    display: none !important;
}

.pw-policy__field {
    display: grid;
    gap: 6px;
}

.pw-policy__field label {
    color: #202124;
    font-size: 13px;
    font-weight: 700;
}

.pw-policy__field input {
    width: 100%;
    height: 46px;
    padding: 0 12px;
    border: 1px solid #d9dde5;
    border-radius: 6px;
    color: #202124;
    font-size: 15px;
    outline: 0;
}

.pw-policy__field input:focus {
    border-color: #dd4a2c;
}

.pw-policy__form-actions {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 10px;
    margin-top: 4px;
}
