/* =========================================================
   로그인 (member/login)
   - 기존 member.css 톤(골드 #9e8621, 5px 연회색 박스)에 맞춤
   - 모든 스타일은 .ml_wrap 하위로 한정
   ========================================================= */
.ml_wrap {
    width: 480px;
    max-width: 100%;
    margin: 0 auto;
    color: #333;
    word-break: keep-all;
}
.ml_wrap .ml_box {
    padding: 48px 50px 40px;
    border: 5px solid #f0f0f0;
    background: #fff;
    box-sizing: border-box;
}

/* ---------- 입력 필드 ---------- */
.ml_wrap .ml_field {
    position: relative;
    margin-bottom: 10px;
}
.ml_wrap .ml_field .ml_ico {
    position: absolute;
    left: 18px;
    top: 50%;
    width: 20px;
    height: 20px;
    margin-top: -10px;
    color: #b5b5b5;
    pointer-events: none;
    transition: color .15s ease-in-out;
}
.ml_wrap .ml_field input {
    display: block;
    width: 100%;
    height: 58px;
    padding: 0 52px 0 50px;
    border: 1px solid #e3e3e3;
    border-radius: 0;
    background: #fff;
    font-size: 17px;
    color: #333;
    box-sizing: border-box;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    transition: border-color .15s ease-in-out;
}
.ml_wrap .ml_field input::placeholder { color: #aaa; font-size: 16px; }
.ml_wrap .ml_field input::-ms-reveal,
.ml_wrap .ml_field input::-ms-clear { display: none; }
.ml_wrap .ml_field input:focus { border-color: #9e8621; }
.ml_wrap .ml_field input:focus ~ .ml_ico { color: #9e8621; }
.ml_wrap .ml_field.is_error input { border-color: #d9534f; }
.ml_wrap .ml_field.is_error .ml_ico { color: #d9534f; }

/* 필드 우측 버튼 (지우기 / 비밀번호 보기) */
.ml_wrap .ml_btn_icon {
    position: absolute;
    right: 8px;
    top: 50%;
    width: 38px;
    height: 38px;
    margin-top: -19px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #aaa;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ml_wrap .ml_btn_icon:hover { color: #666; }
.ml_wrap .ml_btn_icon:focus-visible { outline: 2px solid #9e8621; outline-offset: -2px; }
.ml_wrap .ml_btn_icon svg { width: 20px; height: 20px; }
.ml_wrap .ml_clear { display: none; }
.ml_wrap .ml_field.has_value .ml_clear { display: flex; }
.ml_wrap .ml_pw_toggle .ico_hide { display: none; }
.ml_wrap .ml_pw_toggle.is_show .ico_show { display: none; }
.ml_wrap .ml_pw_toggle.is_show .ico_hide { display: block; }

/* Caps Lock / 오류 메시지 */
.ml_wrap .ml_caps,
.ml_wrap .ml_error {
    display: none;
    align-items: flex-start;
    gap: 6px;
    margin: 2px 0 10px;
    font-size: 14px;
    line-height: 20px;
}
.ml_wrap .ml_caps { color: #9e8621; }
.ml_wrap .ml_error { color: #d9534f; }
.ml_wrap .ml_caps.is_show,
.ml_wrap .ml_error.is_show { display: flex; }
.ml_wrap .ml_caps svg,
.ml_wrap .ml_error svg { flex: 0 0 auto; width: 16px; height: 16px; margin-top: 2px; }
.ml_wrap .ml_error p { margin: 0; }

/* ---------- 옵션 줄 ---------- */
.ml_wrap .ml_opt {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 16px;
}
.ml_wrap .ml_check { position: relative; }
.ml_wrap .ml_check input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}
.ml_wrap .ml_check label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #666;
    cursor: pointer;
}
.ml_wrap .ml_check .ml_box_chk {
    position: relative;
    width: 19px;
    height: 19px;
    border: 1px solid #ccc;
    background: #fff;
    box-sizing: border-box;
    transition: all .15s ease-in-out;
}
.ml_wrap .ml_check .ml_box_chk::after {
    content: "";
    position: absolute;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    opacity: 0;
}
.ml_wrap .ml_check input:checked + label .ml_box_chk { background: #9e8621; border-color: #9e8621; }
.ml_wrap .ml_check input:checked + label .ml_box_chk::after { opacity: 1; }
.ml_wrap .ml_check input:focus-visible + label .ml_box_chk { outline: 2px solid #9e8621; outline-offset: 2px; }
.ml_wrap .ml_hint {
    font-size: 13px;
    color: #999;
    text-align: right;
}
.ml_wrap .ml_hint em { font-style: normal; color: #9e8621; }

/* ---------- 버튼 ---------- */
.ml_wrap .ml_submit {
    display: block;
    width: 100%;
    margin-top: 28px;
    padding: 0;
    border: 0;
    background: #9e8621;
    color: #fff;
    font-size: 20px;
    font-weight: 500;
    line-height: 60px;
    cursor: pointer;
    transition: background-color .15s ease-in-out;
}
.ml_wrap .ml_submit:hover { background: #8c761b; }
.ml_wrap .ml_submit:focus-visible { outline: 2px solid rgba(158,134,33,.45); outline-offset: 2px; }
.ml_wrap .ml_submit[disabled] { background: #b9a865; cursor: default; }
.ml_wrap .ml_submit .ml_spin {
    display: none;
    width: 16px;
    height: 16px;
    margin: -3px 8px 0 0;
    border: 2px solid rgba(255,255,255,.5);
    border-top-color: #fff;
    border-radius: 50%;
    vertical-align: middle;
    animation: ml_spin .7s linear infinite;
}
.ml_wrap .ml_submit.is_loading .ml_spin { display: inline-block; }
@keyframes ml_spin { to { transform: rotate(360deg); } }

/* 아이디/비밀번호 찾기 */
.ml_wrap .ml_links {
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
    text-align: center;
    font-size: 0;
}
.ml_wrap .ml_links li {
    position: relative;
    display: inline-block;
    padding: 0 16px;
    font-size: 15px;
}
.ml_wrap .ml_links li + li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 1px;
    height: 12px;
    margin-top: -6px;
    background: #e1e1e1;
}
.ml_wrap .ml_links a { color: #777; }
.ml_wrap .ml_links a:hover { color: #9e8621; }

/* 회원가입 안내 */
.ml_wrap .ml_join {
    margin-top: 32px;
    padding-top: 28px;
    border-top: 1px solid #eee;
    text-align: center;
}
.ml_wrap .ml_join p {
    margin: 0 0 12px;
    font-size: 15px;
    color: #777;
}
.ml_wrap .ml_join a {
    display: block;
    border: 1px solid #9e8621;
    color: #9e8621;
    font-size: 17px;
    font-weight: 500;
    line-height: 52px;
    transition: all .15s ease-in-out;
}
.ml_wrap .ml_join a:hover { background: #9e8621; color: #fff; }

/* ---------- 모바일 ---------- */
@media (max-width: 768px) {
    .ml_wrap { width: 100%; margin-top: 25px; }
    .ml_wrap .ml_box { padding: 28px 18px 26px; border-width: 3px; }

    .ml_wrap .ml_field input { height: 52px; padding: 0 46px 0 44px; font-size: 16px; }
    .ml_wrap .ml_field input::placeholder { font-size: 15px; }
    .ml_wrap .ml_field .ml_ico { left: 15px; width: 18px; height: 18px; margin-top: -9px; }
    .ml_wrap .ml_btn_icon { right: 4px; }

    .ml_wrap .ml_caps,
    .ml_wrap .ml_error { font-size: 13px; line-height: 18px; }

    .ml_wrap .ml_opt { flex-wrap: wrap; margin-top: 14px; }
    .ml_wrap .ml_check label { font-size: 14px; }
    .ml_wrap .ml_hint { font-size: 12px; }

    .ml_wrap .ml_submit { margin-top: 22px; font-size: 17px; line-height: 52px; }

    .ml_wrap .ml_links { margin-top: 20px; }
    .ml_wrap .ml_links li { padding: 0 12px; font-size: 13px; }

    .ml_wrap .ml_join { margin-top: 24px; padding-top: 20px; }
    .ml_wrap .ml_join p { font-size: 13px; margin-bottom: 10px; }
    .ml_wrap .ml_join a { font-size: 15px; line-height: 46px; }
}

/* ---------- 버튼 효과 ---------- */
.ml_wrap .ml_submit {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #ad942c 0%, #9e8621 55%, #8f7819 100%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 4px 12px rgba(158,134,33,.28);
    text-shadow: 0 1px 1px rgba(0,0,0,.12);
    letter-spacing: .02em;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.ml_wrap .ml_submit::before {
    content: "";
    position: absolute;
    top: 0;
    left: -60%;
    width: 40%;
    height: 100%;
    background: linear-gradient(100deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.28) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-20deg);
    pointer-events: none;
}
.ml_wrap .ml_submit:hover:not([disabled]) {
    background: linear-gradient(180deg, #b69c33 0%, #a68d25 55%, #937b1b 100%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 8px 20px rgba(158,134,33,.36);
    transform: translateY(-1px);
}
.ml_wrap .ml_submit:hover:not([disabled])::before { left: 130%; transition: left .6s ease; }
.ml_wrap .ml_submit:active:not([disabled]) {
    transform: translateY(1px);
    box-shadow: inset 0 2px 4px rgba(0,0,0,.18), 0 2px 6px rgba(158,134,33,.25);
}
.ml_wrap .ml_submit[disabled] { box-shadow: none; text-shadow: none; transform: none; }
.ml_wrap .ml_submit[disabled]::before { display: none; }
.ml_wrap .ml_join a {
    box-shadow: 0 2px 6px rgba(0,0,0,.05);
    transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, color .18s ease, border-color .18s ease;
}
.ml_wrap .ml_join a:hover:not([disabled]) {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(158,134,33,.22);
}
.ml_wrap .ml_join a:active:not([disabled]) { transform: translateY(1px); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
@media (prefers-reduced-motion: reduce) {
    .ml_wrap button, .ml_wrap a, .ml_wrap label { transition: none !important; transform: none !important; }
    .ml_wrap *::before { transition: none !important; }
}
