/**
 * News 회원 스킨 - 현대적이고 세련된 디자인
 */

/* CSS 초기화 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

ul, ol {
    list-style: none;
    margin: 0;
    padding: 0;
}

li {
    list-style: none;
}

/* 전체 바디 배경 */
body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    font-family: 'Malgun Gothic', 'Apple SD Gothic Neo', sans-serif;
}

/* 공통 컨테이너 */
.register,
.login_form,
.reg_result,
.password_lost_form {
    max-width: 800px;
    margin: 50px auto;
    padding: 50px;
    background: white;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from { 
        opacity: 0; 
        transform: translateY(30px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

/* 제목 스타일 */
.register h1,
.login_form h1,
.reg_result h1,
.password_lost_form h1 {
    text-align: center;
    font-size: 36px;
    color: #2c3e50;
    margin-bottom: 15px;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 부제목 */
.register p,
.login_form p,
.password_lost_form p {
    text-align: center;
    color: #6c757d;
    font-size: 16px;
    margin-bottom: 40px;
    line-height: 1.6;
}

/* 안내 박스 */
.info_box {
    background: linear-gradient(135deg, #f0f4ff 0%, #e6f2ff 100%);
    border-left: 5px solid #667eea;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 30px;
}

.info_box i {
    font-size: 24px;
    color: #667eea;
    margin-right: 10px;
}

/* 약관 섹션 */
#fregister_term,
#fregister_private,
#fregister_marketing {
    margin-bottom: 30px;
    border: 2px solid #e9ecef;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s;
}

#fregister_term:hover,
#fregister_private:hover,
#fregister_marketing:hover {
    border-color: #667eea;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
}

#fregister_term h2,
#fregister_private h2,
#fregister_marketing h2 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 25px;
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

#fregister_term h2:before {
    content: "📋";
    font-size: 24px;
}

#fregister_private h2:before {
    content: "🔒";
    font-size: 24px;
}

#fregister_marketing h2:before {
    content: "📧";
    font-size: 24px;
}

/* 약관 텍스트박스 */
#fregister_term textarea {
    width: 100%;
    height: 220px;
    padding: 25px;
    border: none;
    background: #f8f9fa;
    font-size: 14px;
    line-height: 2;
    color: #495057;
    resize: none;
    font-family: inherit;
}

#fregister_term textarea:focus {
    outline: none;
    background: #fff;
}

/* 개인정보 테이블 */
#fregister_private table {
    width: 100%;
    border-collapse: collapse;
    background: #f8f9fa;
}

#fregister_private th,
#fregister_private td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #dee2e6;
    font-size: 14px;
}

#fregister_private th {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    font-weight: 700;
    color: #2c3e50;
}

#fregister_private td {
    color: #6c757d;
}

#fregister_private tbody tr:hover {
    background: white;
}

/* 동의 체크박스 */
.fregister_agree,
.fregister_private_agree {
    padding: 25px;
    text-align: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.fregister_agree label,
.fregister_private_agree label {
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: 50px;
    transition: all 0.3s;
}

.fregister_agree label:hover,
.fregister_private_agree label:hover {
    background: white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.fregister_agree input[type="checkbox"],
.fregister_private_agree input[type="checkbox"] {
    width: 22px;
    height: 22px;
    cursor: pointer;
    accent-color: #667eea;
}

/* 회원 유형 선택 카드 */
.member_type_cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 12px;
    margin-bottom: 30px;
}

.member_type_card {
    position: relative;
    cursor: pointer;
}

.member_type_card input[type="radio"] {
    display: none;
}

.member_type_card_inner {
    padding: 30px;
    background: white;
    border: 3px solid #e9ecef;
    border-radius: 16px;
    text-align: center;
    transition: all 0.3s;
}

.member_type_card input[type="radio"]:checked + .member_type_card_inner {
    border-color: #667eea;
    background: linear-gradient(135deg, #f0f4ff 0%, #ffffff 100%);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    transform: translateY(-5px);
}

.member_type_card_inner:hover {
    border-color: #667eea;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.member_type_icon {
    font-size: 64px;
    margin-bottom: 15px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.member_type_title {
    font-weight: 800;
    color: #2c3e50;
    font-size: 20px;
    margin-bottom: 8px;
}

.member_type_desc {
    font-size: 14px;
    color: #6c757d;
    line-height: 1.6;
}

/* 폼 그룹 */
.register_form_inner {
    margin: 40px 0;
}

.register_form_inner h2 {
    font-size: 22px;
    color: #2c3e50;
    margin: 0 0 25px 0;
    padding-bottom: 15px;
    border-bottom: 3px solid #667eea;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.register_form_inner h2:before {
    content: "✏️";
    font-size: 28px;
}

/* 입력 필드 */
.frm_input,
input[type="text"],
input[type="password"],
input[type="email"],
input[type="tel"],
select,
textarea {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 15px;
    transition: all 0.3s;
    font-family: inherit;
    background: white;
}

.frm_input:focus,
input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    background: #f0f4ff;
}

/* 라벨 */
label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 15px;
}

/* 필수 표시 */
.required {
    color: #dc3545;
    font-weight: 700;
    margin-left: 3px;
}

/* 버튼 */
.btn_submit,
.btn_cancel {
    display: inline-block;
    padding: 18px 45px;
    margin: 8px;
    border: none;
    border-radius: 50px;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    font-family: inherit;
}

.btn_submit {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.btn_submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(102, 126, 234, 0.4);
}

.btn_cancel {
    background: #e9ecef;
    color: #6c757d;
}

.btn_cancel:hover {
    background: #dee2e6;
    transform: translateY(-3px);
}

.btn_confirm {
    text-align: center;
    margin-top: 40px;
}

/* 로그인 폼 */
.login_form {
    max-width: 500px;
}

.form_01 {
    margin-bottom: 25px;
}

.login_auto {
    margin: 20px 0;
    text-align: center;
}

.login_auto label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 600;
    color: #6c757d;
    padding: 10px 20px;
    border-radius: 50px;
    transition: all 0.3s;
}

.login_auto label:hover {
    background: #f8f9fa;
}

.login_auto input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #667eea;
}

.login_info {
    text-align: center;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid #e9ecef;
}

.login_info a {
    color: #667eea;
    text-decoration: none;
    margin: 0 15px;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s;
}

.login_info a:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* 완료 페이지 */
.reg_result {
    max-width: 650px;
    text-align: center;
}

.reg_result_icon {
    font-size: 100px;
    margin-bottom: 30px;
    animation: bounceIn 1s ease-out;
}

@keyframes bounceIn {
    0% { 
        opacity: 0; 
        transform: scale(0.3); 
    }
    50% { 
        opacity: 1; 
        transform: scale(1.1); 
    }
    100% { 
        transform: scale(1); 
    }
}

.reg_result h1 {
    font-size: 32px;
    margin-bottom: 20px;
}

.reg_result p {
    font-size: 17px;
    line-height: 1.8;
    margin-bottom: 30px;
}

/* 알림 박스 */
.alert_box {
    padding: 25px 30px;
    border-radius: 16px;
    margin: 25px 0;
    border-left: 5px solid;
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.alert_box.warning {
    background: linear-gradient(135deg, #fff3cd 0%, #ffecb5 100%);
    border-color: #ffc107;
}

.alert_box.info {
    background: linear-gradient(135deg, #e7f3ff 0%, #cfe7ff 100%);
    border-color: #0066cc;
}

.alert_box.success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border-color: #28a745;
}

.alert_box strong {
    display: block;
    font-size: 18px;
    margin-bottom: 8px;
    font-weight: 700;
}

.alert_box p {
    margin: 0;
    font-size: 15px;
    line-height: 1.8;
}

/* 비밀번호 찾기 */
.password_lost_form {
    max-width: 600px;
}

.password_lost_tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    background: #f8f9fa;
    padding: 8px;
    border-radius: 50px;
}

.password_lost_tab {
    flex: 1;
    padding: 15px;
    border: none;
    background: transparent;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    color: #6c757d;
}

.password_lost_tab.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.password_lost_tab:hover:not(.active) {
    background: white;
}

.tab_content {
    display: none;
}

.tab_content.active {
    display: block;
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* 반응형 */
@media (max-width: 768px) {
    .register,
    .login_form,
    .reg_result,
    .password_lost_form {
        margin: 20px;
        padding: 30px 25px;
    }

    .register h1,
    .login_form h1,
    .reg_result h1 {
        font-size: 28px;
    }

    .member_type_cards {
        grid-template-columns: 1fr;
    }

    .btn_submit,
    .btn_cancel {
        display: block;
        width: 100%;
        margin: 8px 0;
    }

    #fregister_private table {
        font-size: 12px;
    }

    #fregister_private th,
    #fregister_private td {
        padding: 10px;
    }
}
