:root {
    --primary: #ff6747;
    --primary-dark: #ed5639;
    --primary-soft: #fff0e9;
    --cream: #fff9f5;
    --white: #fff;
    --text: #302b28;
    --sub: #817771;
    --line: #e9ded8;
    --placeholder: #b7aeaa;
    --error: #df553e;
    --success: #5d9b70;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-width: 320px;
    min-height: 100%;
}

body {
    font-family: Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
    color: var(--text);
    background: linear-gradient(180deg, #fffaf7 0%, #f9f4f0 100%);
}

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

a {
    color: inherit;
    text-decoration: none;
}

.hidden {
    display: none !important;
}

.find-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 40px 20px 25px;
}

.find-card {
    width: 100%;
    max-width: 540px;
    padding: 30px 34px 34px;
    border: 1px solid #eee4de;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 24px 70px rgba(80, 55, 45, 0.09);
}

.find-top {
    position: relative;
    min-height: 65px;
}

.back-login {
    position: absolute;
    top: 0;
    left: 0;
    color: #807771;
    font-size: 11px;
    font-weight: 600;
}

.back-login:hover {
    color: var(--primary);
}

.brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: fit-content;
    margin: 5px auto 0;
}

.brand-icon {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(135deg, #ff8a68, #ff6041);
    font-size: 16px;
}

.brand > div {
    display: flex;
    flex-direction: column;
}

.brand strong {
    font-size: 18px;
    line-height: 1.1;
    font-weight: 900;
}

.brand small {
    margin-top: 2px;
    color: #8c827d;
    font-size: 8px;
}

.find-heading {
    margin: 18px 0 24px;
    text-align: center;
}

.find-heading h1 {
    margin: 0;
    font-size: 25px;
    line-height: 1.3;
    letter-spacing: -1px;
}

.find-heading p {
    margin: 8px 0 0;
    color: var(--sub);
    font-size: 12px;
}

.tab-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
}

.tab-group + .tab-group {
    margin-top: 10px;
}

.tab-btn {
    height: 44px;
    border: 0;
    color: #746b66;
    background: transparent;
    font-size: 12px;
    font-weight: 700;
    transition: 0.18s ease;
}

.tab-btn + .tab-btn {
    border-left: 1px solid var(--line);
}

.member-tabs .tab-btn.active {
    color: #fff;
    background: linear-gradient(135deg, #ff7352, #ff6041);
}

.type-tabs .tab-btn.active {
    color: var(--primary);
    background: #fff8f4;
    box-shadow: inset 0 0 0 1px var(--primary);
}

.find-step {
    margin-top: 24px;
}

.step-title {
    margin-bottom: 20px;
}

.step-title.center {
    text-align: center;
}

.step-title h2 {
    margin: 0;
    font-size: 22px;
    letter-spacing: -0.8px;
}

.step-title p {
    margin: 7px 0 0;
    color: var(--sub);
    font-size: 12px;
    line-height: 1.6;
}

.info-notice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 19px;
    padding: 13px 14px;
    border-radius: 12px;
    background: #fff3ed;
}

.info-notice > span {
    display: grid;
    place-items: center;
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    border: 1px solid var(--primary);
    border-radius: 50%;
    color: var(--primary);
    font-size: 11px;
    font-weight: 900;
}

.info-notice p {
    margin: 1px 0 0;
    color: #726862;
    font-size: 11px;
    line-height: 1.65;
}

.form-group + .form-group {
    margin-top: 15px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 800;
}

.form-input {
    width: 100%;
    height: 50px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 11px;
    outline: none;
    color: var(--text);
    background: #fff;
    font-size: 13px;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.form-input::placeholder {
    color: var(--placeholder);
}

.form-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 103, 71, 0.09);
}

.form-message {
    min-height: 17px;
    margin: 6px 0 0;
    color: var(--error);
    font-size: 10px;
}

.form-message.success {
    color: var(--success);
}

.primary-btn,
.secondary-btn {
    width: 100%;
    height: 51px;
    border-radius: 11px;
    font-size: 13px;
    font-weight: 900;
}

.primary-btn {
    margin-top: 11px;
    border: 0;
    color: #fff;
    background: linear-gradient(135deg, #ff7352, #ff5d3e);
    box-shadow: 0 9px 20px rgba(255, 98, 64, 0.14);
}

.primary-btn:hover {
    background: linear-gradient(135deg, #ff6747, #ee5437);
}

.secondary-btn {
    margin-top: 9px;
    border: 1px solid #edcfc4;
    color: #605752;
    background: #fff;
}

.secondary-btn:hover {
    background: #fff9f6;
}

.link-btn {
    display: flex;
    align-items: center;
    justify-content: center;
}

.bottom-link {
    margin-top: 20px;
    text-align: center;
}

.bottom-link a,
.text-btn {
    border: 0;
    border-bottom: 1px solid #8f8580;
    color: #756c67;
    background: transparent;
    font-size: 11px;
}

.step-icon {
    display: grid;
    place-items: center;
    width: 62px;
    height: 62px;
    margin: 0 auto 18px;
    border-radius: 50%;
    color: var(--primary);
    background: #fff0e9;
    font-size: 27px;
}

.step-icon.lock {
    font-size: 13px;
}

.verify-box {
    margin-top: 20px;
}

.code-input-wrap {
    position: relative;
}

.code-input-wrap .form-input {
    padding-right: 65px;
}

.timer {
    position: absolute;
    top: 50%;
    right: 14px;
    color: var(--primary);
    font-size: 11px;
    font-weight: 800;
    transform: translateY(-50%);
}

.text-btn {
    display: block;
    margin: 15px auto 0;
    padding: 2px 0;
}

.password-wrap {
    position: relative;
}

.password-wrap .form-input {
    padding-right: 55px;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 10px;
    padding: 5px;
    border: 0;
    color: #8b817c;
    background: transparent;
    font-size: 10px;
    transform: translateY(-50%);
}

.password-guide {
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: 11px;
    background: #fff5ef;
}

.password-guide p {
    margin: 2px 0;
    color: #80766f;
    font-size: 10px;
}

.result-view {
    padding: 45px 0 10px;
    text-align: center;
}

.result-icon {
    display: grid;
    place-items: center;
    width: 85px;
    height: 85px;
    margin: 0 auto;
    border-radius: 50%;
    color: var(--primary);
    background: #ffede6;
    font-size: 38px;
    font-weight: 900;
}

.result-title {
    margin: 24px 0;
}

.result-title h2 {
    margin: 0;
    font-size: 27px;
    line-height: 1.4;
    letter-spacing: -1px;
}

.result-title p {
    margin: 9px 0 0;
    color: var(--sub);
    font-size: 12px;
    line-height: 1.6;
}

.result-account {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 22px;
    padding: 19px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: #fffaf7;
}

.result-account span {
    color: #938985;
    font-size: 10px;
}

.result-account strong {
    font-size: 24px;
    letter-spacing: 1px;
}

.page-message {
    margin: 22px 0 0;
    color: #a09792;
    font-size: 10px;
}

@media (max-width: 600px) {
    body {
        background: var(--cream);
    }

    .find-page {
        justify-content: flex-start;
        padding: 0;
    }

    .find-card {
        max-width: none;
        min-height: 100vh;
        padding: 24px 18px 35px;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .find-top {
        min-height: 68px;
    }

    .back-login {
        font-size: 0;
    }

    .back-login::before {
        content: "←";
        font-size: 21px;
    }

    .find-heading {
        margin-top: 10px;
    }

    .find-heading h1 {
        font-size: 23px;
    }

    .tab-btn {
        height: 42px;
        font-size: 11px;
    }

    .find-step {
        margin-top: 22px;
    }

    .page-message {
        display: none;
    }
}

@media (max-width: 380px) {
    .find-card {
        padding-left: 13px;
        padding-right: 13px;
    }

    .find-heading h1 {
        font-size: 21px;
    }

    .form-input {
        height: 48px;
    }
}
