/* 아이디·비밀번호 찾기 페이지 스타일 */

.btn-confirm {
    background:#bb877a !important;
}


/* Main Wrapper */
.find-wrapper {
    background: #faf8f8;
    min-height: 100vh;
    padding: 60px 0 100px;
}

.find-wrapper .container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Page Header */
.page-header {
    text-align: center;
    margin-bottom: 60px;
    animation: fadeInDown 0.6s ease-out;
}

.page-title {
    font-size: 38px;
    font-weight: 800;
    color: #333;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.page-subtitle {
    font-size: 16px;
    color: #666;
    font-weight: 400;
}

/* Find Form */
.find-form {
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

/* Form Section */
.form-section {
    background: #fff;
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.form-section:hover {
    border-color: #faf8f8;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Main Tabs */
.main-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 32px;
}

.main-tab {
    padding: 16px;
    text-align: center;
    background: #faf8f8;
    border: 2px solid #e5e5e5;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
}

.main-tab:hover {
    border-color: #bb877a;
    background: #fff;
}

#tab-find-id:checked ~ .form-section .main-tabs label[for="tab-find-id"],
#tab-find-pw:checked ~ .form-section .main-tabs label[for="tab-find-pw"] {
    background: #bb877a;
    border-color: #bb877a;
    color: #fff;
}

/* Tab Content */
.tab-content {
    display: none;
}

#tab-find-id:checked ~ .form-section #find-id-panel,
#tab-find-pw:checked ~ .form-section #find-pw-panel {
    display: block;
}

/* 태경) 수정 필요 */
/* 탭 컨텐츠 내부 여백 */
.tab-content .form-group:first-child {
    margin-top: 4px;
}
/* Sub Tabs */
.sub-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 28px;
    background: #faf8f8;
    padding: 6px;
    border-radius: 10px;
}
/* 태경) 수정 필요 */

/* Input with Button */
.input-with-button {
    display: flex;
    gap: 12px;
}

.input-with-button .form-input {
    flex: 1;
    padding-left: 16px;
}

.btn-action {
    padding: 14px 24px;
    background: #fff;
    color: #667eea;
    border: 2px solid #667eea;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.3s ease;
}
/* 태경) 수정 필요 */
.btn-action:hover {
    background: #667eea;
}
.sub-tab:hover {
    background: #fff;
    color: #bb877a;
}
/* 태경) 수정 필요 */

/* ID Method Tabs */
#id-email:checked ~ .sub-tabs label[for="id-email"],
#id-phone:checked ~ .sub-tabs label[for="id-phone"] {
    background: #bb877a;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* 태경) 수정 필요 */
.btn-action:active {
    transform: translateY(0);
}
/* Password Method Tabs */
#pw-email:checked ~ .sub-tabs label[for="pw-email"],
#pw-phone:checked ~ .sub-tabs label[for="pw-phone"] {
    background: #bb877a;
    color: #fff;
}
/* 태경) 수정 필요 */

.btn-action:disabled {
    background: #efebe9;
    color: #999;
    border-color: #efebe9;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* 타이머 */
.input-help.timer {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    font-size: 13px;
    color: #e74c3c;
}

/* Form Group */
.form-group {
    margin-bottom: 28px;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-label {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

/* Input Wrapper */

.input-with-button {
    position:relative;
}

.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    pointer-events: none;
    z-index: 1;
}

.find-wrapper .form-input {
    width: 100%;
    padding: 14px 50px 14px 48px;
    border: 2px solid #e5e5e5;
    border-radius: 10px;
    font-size: 15px;
    color: #333;
    transition: all 0.3s ease;
    background: #fff;
}

.form-input:focus {
    outline: none;
    border-color: #bb877a;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-input::placeholder {
    color: #999;
}

/* Form Group Check (임시 비밀번호 발급 방식) */
.form-group-check {
    margin-bottom: 32px;
    padding: 20px;
    background: #faf8f8;
    border-radius: 10px;
}

.form-label-main {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #333;
    margin-bottom: 14px;
}

.check-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Checkbox Wrapper */
.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
    padding: 12px 14px;
    background: #fff;
    border-radius: 8px;
    border: 2px solid #e5e5e5;
    transition: all 0.3s ease;
}

.checkbox-wrapper:hover {
    border-color: #bb877a;
}

.checkbox-wrapper input[type="checkbox"] {
    display: none;
}

.checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #e5e5e5;
    border-radius: 4px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
    position: relative;
}

.checkbox-custom::after {
    content: '';
    width: 5px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg) scale(0);
    transition: transform 0.2s ease;
}

.checkbox-wrapper input[type="checkbox"]:checked + .checkbox-custom {
    background: #bb877a;
    border-color: #bb877a;
}

.checkbox-wrapper input[type="checkbox"]:checked + .checkbox-custom::after {
    transform: rotate(45deg) scale(1);
}

.checkbox-label {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

/* Submit Button */
.btn-submit {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #bb877a 0%, #9f806f 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    
    position: relative;
    overflow: hidden;
    margin-top: 32px;
}

.btn-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-submit:hover::before {
    left: 100%;
}

.btn-submit:hover {
    transform: translateY(-3px);

}

.btn-submit:active {
    transform: translateY(-1px);
}

/* Link Section */
.link-section {
    text-align: center;
    padding: 40px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 2px solid #faf8f8;
    animation: fadeInUp 0.6s ease-out 0.4s both;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.link-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #bb877a 0%, #9f806f 100%);
}

.link-section:hover {
    border-color: #efebe9;
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.12);
}

.link-section p {
    font-size: 16px;
    color: #333;
    margin-bottom: 16px;
    font-weight: 600;
}

.link-login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 40px;
    background: linear-gradient(135deg, #bb877a 0%, #9f806f 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    
}

.link-login:hover {
    transform: translateY(-3px);

}

.link-login:active {
    transform: translateY(-1px);
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .find-wrapper {
        padding: 40px 0 60px;
    }

    .find-wrapper .container {
        padding: 0 20px;
    }

    .page-header {
        margin-bottom: 40px;
    }

    .page-title {
        font-size: 32px;
    }

    .page-subtitle {
        font-size: 15px;
    }

    .form-section {
        padding: 32px 24px;
        margin-bottom: 24px;
    }

    .main-tabs {
        gap: 8px;
        margin-bottom: 28px;
    }

    .main-tab {
        padding: 14px;
        font-size: 14px;
    }

    .sub-tabs {
        padding: 5px;
        gap: 6px;
        margin-bottom: 24px;
    }

    .sub-tab {
        padding: 10px;
        font-size: 13px;
    }

    .form-input {
        padding: 13px 44px 13px 44px;
        font-size: 14px;
    }

    .form-group-check {
        padding: 16px;
        margin-bottom: 28px;
    }

    .form-label-main {
        font-size: 13px;
    }

    .checkbox-wrapper {
        padding: 10px 12px;
    }

    .checkbox-label {
        font-size: 13px;
    }

    .link-section {
        padding: 32px 24px;
    }

    .link-section p {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .input-with-button {
        flex-direction: column;
    }

    .btn-action {
        width: 100%;
    }

    .page-title {
        font-size: 28px;
    }

    .page-subtitle {
        font-size: 14px;
    }

    .form-section {
        padding: 24px 20px;
        border-radius: 16px;
    }

    .main-tab {
        padding: 12px;
        font-size: 13px;
        border-radius: 8px;
    }

    .sub-tabs {
        padding: 5px;
        border-radius: 8px;
    }

    .sub-tab {
        padding: 9px;
        font-size: 12px;
    }

    .form-group {
        margin-bottom: 20px;
    }

    .form-label {
        font-size: 14px;
    }

    .form-input {
        padding: 12px 40px 12px 40px;
        font-size: 14px;
    }

    .form-group-check {
        padding: 14px;
        margin-bottom: 24px;
    }

    .form-label-main {
        font-size: 13px;
        margin-bottom: 12px;
    }

    .check-options {
        gap: 8px;
    }

    .checkbox-wrapper {
        padding: 9px 10px;
    }

    .checkbox-custom {
        width: 18px;
        height: 18px;
    }

    .checkbox-label {
        font-size: 13px;
    }

    .btn-submit {
        padding: 16px;
        font-size: 15px;
        margin-top: 28px;
    }

    .link-section {
        padding: 28px 20px;
    }

    .link-section p {
        font-size: 14px;
        margin-bottom: 12px;
    }

    .link-login {
        padding: 12px 32px;
        font-size: 14px;
    }
}
