/**
 * 아이디/비밀번호 찾기 공통 스타일
 *
 * 적용 페이지:
 * - EgovFindAccount.jsp (아이디/비밀번호 찾기 선택)
 * - EgovFindIdAuth.jsp (아이디 찾기 본인인증)
 * - EgovFindPwAuth.jsp (비밀번호 찾기 본인인증)
 * - EgovFindIdResult.jsp (아이디 찾기 결과)
 * - EgovFindPwResult.jsp (비밀번호 찾기 결과)
 * - EgovResetPassword.jsp (비밀번호 재설정)
 */

/* ========================================
   공통 레이아웃
   ======================================== */
.find-wrapper {
    display: flex;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.find-container {
    margin: auto;
    width: 100%;
    max-width: 500px;
    padding: 20px;
}

.find-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 40px;
}

/* ========================================
   헤더 (아이콘 + 제목)
   ======================================== */
.find-header {
    text-align: center;
    margin-bottom: 30px;
}

.find-header .icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.find-header .icon.success {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
}

.find-header .icon.warning {
    background: linear-gradient(135deg, #ed8936 0%, #dd6b20 100%);
}

.find-header .icon i {
    font-size: 36px;
    color: #fff;
}

.find-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.find-header p {
    color: #666;
    font-size: 14px;
}

/* ========================================
   뒤로가기 링크
   ======================================== */
.back-link {
    display: block;
    text-align: center;
    margin-top: 25px;
    color: #666;
    text-decoration: none;
    font-size: 14px;
}

.back-link:hover {
    color: #667eea;
}

.back-link i {
    margin-right: 5px;
}

/* ========================================
   알림/에러 박스
   ======================================== */
.alert-error {
    background: #fff5f5;
    border: 1px solid #fed7d7;
    color: #c53030;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-error i {
    margin-right: 8px;
}

/* ========================================
   찾기 옵션 (아이디/비밀번호 선택 페이지)
   ======================================== */
.find-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.find-option {
    display: flex;
    align-items: center;
    padding: 20px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.find-option:hover {
    border-color: #667eea;
    background: #f8f9ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.find-option .option-icon {
    width: 50px;
    height: 50px;
    background: #f8f9fa;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.find-option:hover .option-icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.find-option .option-icon i {
    font-size: 22px;
    color: #667eea;
}

.find-option:hover .option-icon i {
    color: #fff;
}

.find-option .option-content h3 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.find-option .option-content p {
    font-size: 13px;
    color: #888;
    margin: 0;
}

.find-option .option-arrow {
    margin-left: auto;
    color: #ccc;
}

.find-option:hover .option-arrow {
    color: #667eea;
}

/* ========================================
   본인인증 안내 (Auth 페이지)
   ======================================== */
.auth-info {
    background: #f8f9ff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
}

.auth-info h4 {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}

.auth-info h4 i {
    color: #667eea;
    margin-right: 8px;
}

.auth-info ul {
    margin: 0;
    padding-left: 20px;
    color: #666;
    font-size: 13px;
}

.auth-info ul li {
    margin-bottom: 6px;
}

/* ========================================
   인증 버튼
   ======================================== */
.auth-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.auth-btn i {
    margin-right: 10px;
    font-size: 18px;
}

/* ========================================
   결과 박스 (아이디 찾기 결과)
   ======================================== */
.result-box {
    background: #f8f9ff;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    text-align: center;
}

.result-box .label {
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
}

.result-box .value {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    letter-spacing: 2px;
}

.result-box .sub-info {
    font-size: 13px;
    color: #888;
    margin-top: 12px;
}

.show-full-btn {
    display: inline-block;
    margin-top: 15px;
    padding: 8px 16px;
    background: #667eea;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.show-full-btn:hover {
    background: #5a6fd6;
}

/* ========================================
   회원 없음 박스
   ======================================== */
.not-found-box {
    background: #fff5f5;
    border: 1px solid #fed7d7;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    text-align: center;
}

.not-found-box i {
    font-size: 48px;
    color: #fc8181;
    margin-bottom: 15px;
}

.not-found-box h3 {
    font-size: 18px;
    color: #c53030;
    margin-bottom: 10px;
}

.not-found-box p {
    font-size: 14px;
    color: #666;
}

/* ========================================
   버튼 그룹
   ======================================== */
.btn-group {
    display: flex;
    gap: 12px;
}

.btn-primary {
    flex: 1;
    padding: 14px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 10px;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
    color: #fff;
}

.btn-secondary {
    flex: 1;
    padding: 14px;
    background: #f1f3f5;
    border: none;
    border-radius: 10px;
    color: #495057;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
}

.btn-secondary:hover {
    background: #e9ecef;
    color: #495057;
}

/* ========================================
   사용자 정보 박스 (비밀번호 재설정)
   ======================================== */
.user-info {
    background: #f8f9ff;
    border-radius: 10px;
    padding: 15px 20px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
}

.user-info i {
    font-size: 24px;
    color: #667eea;
    margin-right: 15px;
}

.user-info .info {
    flex: 1;
}

.user-info .name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.user-info .id {
    font-size: 13px;
    color: #666;
}

/* ========================================
   폼 스타일 (비밀번호 재설정)
   ======================================== */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.form-group .input-wrapper {
    position: relative;
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    padding-right: 45px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.2s;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
}

.form-group .toggle-password {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #adb5bd;
    cursor: pointer;
    padding: 5px;
}

.form-group .toggle-password:hover {
    color: #667eea;
}

.form-group .hint {
    font-size: 12px;
    color: #888;
    margin-top: 6px;
}

.form-group .error {
    font-size: 12px;
    color: #e53e3e;
    margin-top: 6px;
    display: none;
}

/* ========================================
   비밀번호 강도 표시
   ======================================== */
.password-strength {
    margin-top: 8px;
}

.strength-bar {
    height: 4px;
    background: #e9ecef;
    border-radius: 2px;
    overflow: hidden;
}

.strength-bar .bar {
    height: 100%;
    width: 0;
    transition: all 0.3s;
}

.strength-bar .bar.weak {
    width: 33%;
    background: #e53e3e;
}

.strength-bar .bar.medium {
    width: 66%;
    background: #ed8936;
}

.strength-bar .bar.strong {
    width: 100%;
    background: #48bb78;
}

.strength-text {
    font-size: 12px;
    margin-top: 4px;
}

.strength-text.weak {
    color: #e53e3e;
}

.strength-text.medium {
    color: #ed8936;
}

.strength-text.strong {
    color: #48bb78;
}

/* ========================================
   제출 버튼
   ======================================== */
.submit-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.submit-btn:disabled {
    background: #adb5bd;
    cursor: not-allowed;
}
