/* ========================================
   선생님 등록 신청 페이지 CSS
   teacher-register.html
   ======================================== */

/* 메인 콘텐츠 */
.main-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

.page-title {
    font-size: 28px;
    font-weight: 700;
    color: #5d4037;
    text-align: center;
    margin-bottom: 12px;
}

.page-subtitle {
    font-size: 15px;
    color: #8d6e63;
    text-align: center;
    line-height: 1.6;
    margin-bottom: 40px;
}

/* 헤더 네비게이션 */
.nav-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-buttons .btn-login {
    padding: 8px 20px;
    background-color: transparent;
    border: 1px solid #5d4037;
    color: #5d4037;
    border-radius: 4px;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s;
}

.nav-buttons .btn-login:hover {
    background-color: #faf8f5;
}

.nav-buttons .btn-signup {
    padding: 8px 20px;
    background-color: #5d4037;
    border: 1px solid #5d4037;
    color: #fff;
    border-radius: 4px;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s;
}

.nav-buttons .btn-signup:hover {
    background-color: #4e342e;
}

/* 사용자 메뉴 */
.user-menu {
    position: relative;
}

.user-menu-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.user-menu-toggle:hover {
    background-color: #faf8f5;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #5d4037;
}

.user-name {
    font-size: 14px;
    font-weight: 500;
    color: #5d4037;
}

.user-menu-arrow {
    font-size: 10px;
    color: #8d6e63;
    transition: transform 0.2s;
}

.user-menu.open .user-menu-arrow {
    transform: rotate(180deg);
}

.user-menu-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #fff;
    border: 1px solid #d7ccc8;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    min-width: 180px;
    padding: 8px 0;
    z-index: 1000;
    display: none;
}

.user-menu.open .user-menu-dropdown {
    display: block;
}

.user-menu-dropdown a {
    display: block;
    padding: 10px 16px;
    color: #5d4037;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.2s;
}

.user-menu-dropdown a:hover {
    background-color: #faf8f5;
}

.user-menu-dropdown .divider {
    height: 1px;
    background-color: #e0e0e0;
    margin: 8px 0;
}

/* 푸터 */
.footer {
    text-align: center;
    padding: 24px;
    background-color: #faf8f5;
    color: #8d6e63;
    font-size: 13px;
    border-top: 1px solid #d7ccc8;
    margin-top: 60px;
}

/* 필수 표시 */
.required {
    color: #e53935;
    margin-left: 2px;
}

/* 폼 행 반응형 */
@media (max-width: 640px) {
    .form-row {
        flex-direction: column;
    }
}

/* 진행 단계 */
.progress-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    position: relative;
}

.progress-steps::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 10%;
    right: 10%;
    height: 2px;
    background-color: #d7ccc8;
    z-index: 0;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #fff;
    border: 2px solid #d7ccc8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-bottom: 8px;
}

.step.active .step-number {
    background-color: #5d4037;
    border-color: #5d4037;
    color: #fff;
}

.step.completed .step-number {
    background-color: #5d4037;
    border-color: #5d4037;
    color: #fff;
}

.step-label {
    font-size: 12px;
    color: #8d6e63;
}

.step.active .step-label,
.step.completed .step-label {
    color: #5d4037;
    font-weight: 500;
}

/* 폼 컨테이너 */
.form-container {
    background-color: #fff;
    border: 2px solid #5d4037;
    border-radius: 8px;
    padding: 32px;
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #d7ccc8;
}

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

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

.form-hint {
    font-size: 12px;
    color: #8d6e63;
    margin-top: 6px;
}

/* 파일 업로드 */
.file-upload {
    border: 2px dashed #5d4037;
    border-radius: 8px;
    padding: 32px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.file-upload:hover {
    background-color: #faf8f5;
}

.file-upload input[type="file"] {
    display: none;
}

.file-upload .upload-icon {
    font-size: 40px;
    margin-bottom: 12px;
}

.file-upload .upload-text {
    font-size: 14px;
    margin-bottom: 4px;
}

.file-upload .upload-hint {
    font-size: 12px;
    color: #8d6e63;
}

.uploaded-file {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background-color: #faf8f5;
    border-radius: 4px;
    margin-top: 12px;
}

.uploaded-file .file-name {
    font-size: 13px;
}

.uploaded-file .remove-btn {
    background: none;
    border: none;
    color: #e53935;
    cursor: pointer;
    font-size: 18px;
}

/* 체크박스 그룹 */
.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: 1px solid #5d4037;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.checkbox-item:hover {
    background-color: #faf8f5;
}

.checkbox-item.checked {
    background-color: #5d4037;
    color: #fff;
}

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

.checkbox-item .checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid currentColor;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.checkbox-item.checked .checkmark::after {
    content: '✓';
    font-size: 12px;
}

/* 약관 동의 */
.terms-agreement {
    background-color: #faf8f5;
    padding: 20px;
    border-radius: 8px;
    margin-top: 24px;
}

.terms-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 13px;
}

.terms-item:last-child {
    margin-bottom: 0;
}

.terms-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #5d4037;
    cursor: pointer;
    margin-top: 1px;
}

.terms-item label {
    cursor: pointer;
}

.terms-item a {
    color: #5d4037;
    text-decoration: underline;
}

/* 버튼 그룹 */
.button-group {
    display: flex;
    gap: 12px;
    margin-top: 32px;
}

/* 알림 박스 */
.info-box {
    background-color: #fff3e0;
    border-left: 4px solid #ff9800;
    padding: 16px;
    margin-bottom: 24px;
    border-radius: 0 4px 4px 0;
}

.info-box h4 {
    font-size: 14px;
    margin-bottom: 8px;
    color: #e65100;
}

.info-box p {
    font-size: 13px;
    color: #5d4037;
    line-height: 1.6;
}

/* 반응형 */
@media (max-width: 640px) {
    .progress-steps::before {
        display: none;
    }
}
