/* =========================================================
   로그인 페이지 - 아이디/비밀번호 찾기 모달 (AJAX 네이티브)
   그린백링크 브랜드(그린 #1f9d57) / 라운드 카드 / 부드러운 그림자
   ========================================================= */

.gbl-find-link { cursor: pointer; }

.gbl-find-modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.gbl-find-modal.is-open { display: flex; }

.gbl-find-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 35, 24, 0.55);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
}

.gbl-find-modal__dialog {
    position: relative;
    width: 100%;
    max-width: 460px;
    max-height: 92vh;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: gblFindIn 0.22s ease;
}
@keyframes gblFindIn {
    from { opacity: 0; transform: translateY(14px) scale(0.98); }
    to   { opacity: 1; transform: none; }
}

.gbl-find-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 20px;
    background: var(--gbl-green, #1f9d57);
    color: #ffffff;
    flex: 0 0 auto;
}
.gbl-find-modal__title {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.2;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
}
.gbl-find-modal__close {
    -webkit-appearance: none;
    appearance: none;
    border: 0;
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}
.gbl-find-modal__close:hover,
.gbl-find-modal__close:focus { background: rgba(255, 255, 255, 0.34); }

.gbl-find-modal__body {
    position: relative;
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 24px 22px 26px;
    background: #ffffff;
}

/* ---- 폼 ---------------------------------------------------------------- */
.gbl-find-form__intro {
    margin: 0 0 18px;
    font-size: 13.5px;
    line-height: 1.6;
    color: #5a6b60;
    padding: 12px 14px;
    background: #f1f8f3;
    border: 1px solid #d7eede;
    border-radius: 10px;
}
.gbl-find-form__intro strong { color: var(--gbl-green-strong, #178247); }

.gbl-find-field { margin-bottom: 16px; }
.gbl-find-field > label {
    display: block;
    margin-bottom: 7px;
    font-size: 13px;
    font-weight: 600;
    color: #36443c;
}

.gbl-find-input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ced4da;
    border-radius: 9px;
    font-size: 15px;
    color: #222;
    background: #fff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.gbl-find-input:focus {
    outline: none;
    border-color: var(--gbl-green, #1f9d57);
    box-shadow: 0 0 0 3px rgba(31, 157, 87, 0.15);
}
.gbl-find-input::placeholder { color: #9aa7a0; }

/* ---- 캡챠 -------------------------------------------------------------- */
.gbl-find-captcha {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 9px;
}
.gbl-find-captcha__img {
    height: 50px;
    width: auto;
    max-width: 200px;
    border: 1px solid #ced4da;
    border-radius: 8px;
    background: #fff;
    display: block;
}
.gbl-find-captcha__reload {
    -webkit-appearance: none;
    appearance: none;
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border: 1px solid var(--gbl-green, #1f9d57);
    background: #f1f8f3;
    color: var(--gbl-green, #1f9d57);
    border-radius: 9px;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease, color 0.15s ease;
}
.gbl-find-captcha__reload:hover,
.gbl-find-captcha__reload:focus {
    background: var(--gbl-green, #1f9d57);
    color: #fff;
}
.gbl-find-captcha__hint {
    margin: 7px 0 0;
    font-size: 12px;
    color: #8a978f;
}

/* ---- 제출 버튼 --------------------------------------------------------- */
.gbl-find-submit {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    margin-top: 6px;
    padding: 14px;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    background: var(--gbl-green, #1f9d57);
    border: 1px solid var(--gbl-green, #1f9d57);
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease, opacity 0.18s ease;
}
.gbl-find-submit:hover,
.gbl-find-submit:focus {
    background: var(--gbl-green-strong, #178247);
    border-color: var(--gbl-green-strong, #178247);
}
.gbl-find-submit:disabled,
.gbl-find-submit.is-loading {
    opacity: 0.65;
    cursor: progress;
}

/* ---- 메시지 ------------------------------------------------------------ */
.gbl-find-message {
    display: none;
    margin-top: 14px;
    padding: 11px 14px;
    border-radius: 9px;
    font-size: 13.5px;
    line-height: 1.5;
    white-space: pre-line;
}
.gbl-find-message.is-error {
    background: #fdecec;
    border: 1px solid #f5c2c2;
    color: #c0392b;
}
.gbl-find-message.is-info {
    background: #eef6ff;
    border: 1px solid #c5ddf7;
    color: #1c5fa8;
}

/* ---- 성공 화면 --------------------------------------------------------- */
.gbl-find-success {
    text-align: center;
    padding: 18px 6px 6px;
}
.gbl-find-success__icon {
    font-size: 54px;
    color: var(--gbl-green, #1f9d57);
    line-height: 1;
    margin-bottom: 16px;
}
.gbl-find-success__text {
    margin: 0 0 22px;
    font-size: 15px;
    line-height: 1.6;
    color: #36443c;
    white-space: pre-line;
}
.gbl-find-success__close {
    -webkit-appearance: none;
    appearance: none;
    min-width: 140px;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    background: var(--gbl-green, #1f9d57);
    border: 1px solid var(--gbl-green, #1f9d57);
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.18s ease;
}
.gbl-find-success__close:hover,
.gbl-find-success__close:focus { background: var(--gbl-green-strong, #178247); }

/* 모달 오픈 시 배경 스크롤 잠금 */
body.gbl-find-open { overflow: hidden; }

/* ---- 모바일: 전체 화면 시트 ------------------------------------------- */
@media (max-width: 767px) {
    .gbl-find-modal { padding: 0; }
    .gbl-find-modal__dialog {
        width: 100%;
        height: 100%;
        max-width: 100%;
        max-height: 100%;
        border-radius: 0;
    }
    .gbl-find-modal__body { padding: 20px 18px 28px; }
    .gbl-find-captcha__img { height: 46px; }
}
