/* 이메일 인증코드 입력 페이지 스타일 - 개선된 디자인 */

/* 회원가입 페이지 기본 설정 */
.auth-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #f8f9fa;
}

/* 메인 컨텐츠 스타일 */
.main-content {
    display: flex;
    flex-direction: column;
    padding: 60px 0;
    flex: 1;
}

.header__content {
    flex: 1;
    width: 100%;
    max-width: 1456px;
    margin: 0 auto;
    padding: 0 2rem;
}

.header__content_inner {
    display: flex;
    gap: 4rem;
    min-height: 600px;
    align-items: stretch;
}

.header__left {
    flex: 1;
    display: flex;
    flex-direction: column;
    /* justify-content: center; */
}

.header__title {
    font-size: clamp(24px, 4vw, 36px);
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.4;
    font-family: 'Pretendard', sans-serif;
}

.header__subtitle {
    font-size: clamp(14px, 1.5vw, 18px);
    color: #666;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.header__benefits {
    margin-top: 2rem;
}

.benefits__title {
    font-size: 1.3rem;
    font-weight: bold;
    color: #333;
    /* margin-bottom: 1rem; */
}

.benefits__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.benefits__item {
    display: flex;
    align-items: center;
    font-size: 1rem;
    color: #555;
}

.benefits__icon {
    width: 20px;
    height: 20px;
    margin-right: 0.75rem;
    background-color: #6b53d3;
    border-radius: 50%;
    flex-shrink: 0;
}

.header__right {
    flex: 1;
    display: flex;
    align-items: center;
    /* justify-content: center; */
}

/* Auth container and wrapper */
.auth-container {
    min-height: 100vh;
    padding: 2rem 0;
}

.auth-wrapper {
    max-width: 900px;
    overflow: visible;
}

.auth-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: visible;
}

/* 폼 스타일 */
.form-group {
    margin-bottom: 0.5rem;
    overflow: visible;
}

.form-group label {
    color: #3d3c54;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    /* display: block; */
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="password"] {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.form-group input:focus {
    outline: none;
    border-color: #6b53d3;
}

.form-text {
    font-size: 0.8rem;
    color: #6c757d;
    margin-top: 0.25rem;
}

/* 이메일 인증 그룹 */
.email-verification-group {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.email-verification-group input[type="email"] {
    flex: 1;
    margin-right: 0;
}

.btn-verify {
    background: #6b53d3;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    min-width: 120px;
}

.btn-verify:hover {
    background: #6b53d3;
}

.btn-verify:disabled {
    background: #6c757d !important;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-verify.verified {
    background: #6b53d3;
}

/* 인증 상태 */
.verification-check {
    display: none;
    color: #28a745;
    font-weight: 600;
    font-size: 0.9rem;
}

/* 연락처/본인인증 그룹 */
.phone-verification-group {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.phone-verification-group input[type="tel"] {
    flex: 1;
    margin-right: 0;
}

.phone-verification-group input[type="tel"]:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.phone-verification-group input[readonly] {
    background-color: #f8f9fa;
    color: #6c757d;
}

/* 인증 완료된 필드 스타일 */
.verified-field {
    background-color: #e7f5e7 !important;
    border-color: #28a745 !important;
    color: #155724 !important;
    cursor: not-allowed;
}

.verified-field::placeholder {
    color: #6c757d;
}

.verified-field:focus {
    outline: none;
    border-color: #28a745 !important;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25) !important;
}

/* 본인인증 상태 표시 */
.verification-status {
    position: absolute;
    right: 0;
    top: -30px;
    z-index: 10;
}

#identity-verification-status {
    display: none;
}

#identity-verification-status.show .verification-check {
    display: inline-block;
    animation: fadeInScale 0.3s ease-out;
}

/* 폼 텍스트 스타일 */
.form-text {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: #6c757d;
    line-height: 1.4;
}

/* 본인인증 안내 메시지 */
.form-text.text-info {
    color: #17a2b8;
    background-color: #e7f6f8;
    padding: 8px 12px;
    border-radius: 6px;
    border-left: 3px solid #17a2b8;
    font-size: 0.875rem;
    margin-top: 5px;
}

.form-text.text-info i {
    margin-right: 5px;
}

/* 이름 필드와 본인인증 버튼 통합 레이아웃 */
.input-with-button {
    display: flex;
    gap: 10px;
    align-items: center;
}

.input-with-button input {
    flex: 1;
}

/* btn-verify-inline 클래스 제거 - btn-verify 사용 */
    transform: none;
}

.btn-verify-inline i {
    margin-right: 5px;
}

/* disabled 필드 스타일 개선 - 투명한 회색 */
input:disabled {
    background-color: rgba(200, 200, 200, 0.15) !important;
    color: #999;
    cursor: not-allowed;
    opacity: 0.7;
}

input:disabled::placeholder {
    color: #aaa;
    opacity: 0.6;
}

/* 자동 입력 힌트 */
.auto-fill-hint {
    color: #28a745;
    font-size: 0.85rem;
    margin-top: 5px;
    display: block;
    animation: fadeIn 0.3s ease-in;
}

.auto-fill-hint i {
    margin-right: 5px;
}

/* 본인인증 완료 후 힌트 숨기기 */
.verified-field + .auto-fill-hint {
    display: none;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 본인인증 관련 애니메이션 */
@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* 인증 섹션 */
#verification-section {
    display: none;
}

.verification-inline {
    border-radius: 10px;
    animation: slideDown 0.5s ease-out;
}

/* 인증코드 컨테이너 - 한 줄 레이아웃으로 변경 */
.verification-inline-container {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: nowrap;
    overflow-x: auto;
}

.verification-left {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0;
}

.verification-left label {
    display: block;
    margin-bottom: 0;
    margin-right: 0;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
    flex-shrink: 0;
}

/* 인증코드 입력 */
.verification-code-input {
    display: flex;
    justify-content: flex-start;
    gap: 5px;
    margin-bottom: 0;
    flex-shrink: 0;
    margin-left: 45px;
}

.code-digit {
    width: 30px !important;
    height: 30px !important;
    text-align: center !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    border: 2px solid #ddd !important;
    border-radius: 6px !important;
    background: white !important;
    transition: all 0.3s ease !important;
    color: #333 !important;
}

.code-digit:focus {
    outline: none !important;
}

/* 타이머와 재발송 버튼 - 인라인으로 변경 */
.verification-right {
    margin-bottom: 0;
    flex-shrink: 0;
}

.timer {
    display: none;
    color: #e74c3c;
    font-weight: 700;
    font-size: 14px;
    white-space: nowrap;
}

.timer #countdown {
    font-weight: 700;
    color: #e74c3c;
}

.verification-actions {
    margin-bottom: 0;
    flex-shrink: 0;
}

.btn-resend {
    display: none;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    height: 30px;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    min-height: 44px;
}

/* 인증 상태 메시지 */
.verification-status {
    margin-top: 10px;
    text-align: center;
}

/* 사용자 정보 섹션 */
.user-info-section {
    /* margin-top: 2rem; */
    padding: 1.5rem;
    background: #fafbfc;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    /* max-height: 70vh; 화면 높이의 70%로 제한 */
    overflow: visible; /* 툴팁이 넘어갈 수 있도록 변경 */
    position: relative;
    /* 스크롤 성능 최적화 */
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

/* 스크롤 인디케이터 (상단) */
.user-info-section::before {
    content: '';
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(to right, #6b53d3, #536492);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 10;
}

/* 스크롤할 때 인디케이터 표시 */
.user-info-section.scrolled::before {
    opacity: 1;
}

/* 스크롤바 스타일링 (웹킷 브라우저) */
.user-info-section::-webkit-scrollbar {
    width: 8px;
}

.user-info-section::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.user-info-section::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.user-info-section::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* 포커스된 요소가 스크롤 영역에서 벗어나지 않도록 */
.user-info-section .form-group input:focus,
.user-info-section .form-group textarea:focus,
.user-info-section .form-group select:focus {
    scroll-margin-top: 20px;
    scroll-margin-bottom: 20px;
}

.user-info-section .form-group label {
    color: #3d3c54;
}

/* 패스워드 툴팁 */
.password-input-wrapper {
    position: relative;
}

.password-tooltip {
    position: absolute;
    bottom: 100%;
    left: 0;
    background: #333;
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 1000;
    pointer-events: none;
    margin-bottom: 5px;
}

.tooltip-arrow {
    position: absolute;
    top: 100%;
    left: 20px;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #333;
}

.password-input-wrapper:hover .password-tooltip,
.password-input-wrapper input:focus + .password-tooltip {
    opacity: 1;
    visibility: visible;
}

/* 체크박스와 버튼 레이아웃 */
.form-group-flex {
    display: flex;
    justify-content: end;
    align-items: center;
    margin-top: 20px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    white-space: nowrap;
    margin: 0;
}

.marketing-checkbox {
    width: 16px !important;
    height: 16px !important;
    min-width: 16px;
    min-height: 16px;
    max-width: 16px;
    max-height: 16px;
    margin-right: 8px;
    flex-shrink: 0;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    border: 2px solid #ddd;
    border-radius: 3px;
    background-color: #fff;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
}

.marketing-checkbox:hover {
    border-color: #6b53d3;
}

.marketing-checkbox:focus {
    outline: none;
    border-color: #6b53d3;
}

.marketing-checkbox:checked {
    background-color: #6b53d3;
    border-color: #6b53d3;
}

.marketing-checkbox:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: translate(-50%, -50%) rotate(45deg);
}

/* 제출 버튼 */
.btn-success {
    background: #3d3c54;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.5;
    position: relative;
    z-index: 1;
}

.btn-success:enabled {
    opacity: 1;
}

.btn-success:hover:enabled {
    background: #3d3c54;
}

.btn-success:disabled {
    cursor: not-allowed;
    transform: none;
}

.submit-btn {
    margin: 0;
}

/* 인증 링크 */
.auth-links {
    text-align: center;
    margin-top: 2rem;
}

.auth-link {
    color: #007bff;
    text-decoration: none;
    font-size: 0.9rem;
}

.auth-link:hover {
    text-decoration: underline;
}

/* 애니메이션 */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 반응형 디자인 */
@media (max-width: 1200px) {
    .header__content {
        padding: 0 1rem;
    }
    
    .header__content_inner {
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .header__content_inner {
        flex-direction: column;
        gap: 1rem;
        min-height: auto;
        width: 100%;
        max-width: 100%;
    }
    
    .header__left {
        display: none; /* 모바일에서 숨김 */
    }
    
    .header__right {
        width: 100%;
        max-width: 100%;
        overflow: visible;
    }
    
    .main-content {
        padding: 1rem 0;
    }
    
    .header__content {
        padding: 0 1rem;
        width: 100%;
        max-width: 100%;
    }
    
    .header__right .auth-container {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding: 1rem 0.5rem !important;
        box-sizing: border-box !important;
        min-height: auto !important;
    }
    
    .header__right .auth-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        min-height: auto !important;
    }
    
    .header__right .auth-card {
        margin: 0 !important;
        width: 100% !important;
        box-sizing: border-box !important;
        height: auto !important;
        min-height: auto !important;
        max-height: none !important;
    }
    
    .email-verification-group {
        flex-direction: column;
        align-items: stretch;
    }
    
    .email-verification-group input[type="email"] {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .identity-verification-group {
        flex-direction: column;
        align-items: stretch;
    }
    
    .identity-verification-group .btn-verify {
        margin-bottom: 10px;
        width: 100%;
    }
    
    .verification-code-input {
        gap: 4px;
        justify-content: flex-start;
        margin-left: 0px;
    }
    
    .code-digit {
        width: 25px !important;
        height: 25px !important;
        font-size: 12px !important;
    }
    
    .verification-inline-container {
        flex-direction: column;
        gap: 10px;
        flex-wrap: wrap;
    }
    
    .btn-resend {
        height: 25px;
        padding: 4px 8px;
        font-size: 11px;
        min-width: 50px;
    }
    
    .form-group-flex {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
}

/* 인증코드 입력 필드 크기 개선 */
.code-input-single {
    font-size: 18px !important;
    height: 48px !important;
    padding: 12px 16px !important;
    width: 200px !important;
    text-align: center;
    letter-spacing: 4px;
    font-weight: bold;
    border: 2px solid #ddd;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.code-input-single:focus {
    border-color: #536492 !important;
    box-shadow: 0 0 0 3px rgba(83, 100, 146, 0.1) !important;
    outline: none;
}

.code-input-single.loading {
    background-color: #f8f9fa;
    border-color: #007bff;
}

.code-input-single.verified {
    background-color: #d4edda;
    border-color: #28a745;
    color: #155724;
}

.code-input-single.error {
    background-color: #f8d7da;
    border-color: #dc3545;
    color: #721c24;
}

/* 인증 영역 레이아웃 개선 */
.verification-inline-container {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.verification-code-label {
    font-weight: 600;
    color: #333;
    white-space: nowrap;
}

@media (max-width: 480px) {
    .header__content {
        padding: 0 0.5rem;
        width: 100%;
    }
    
    .header__content_inner {
        gap: 0.5rem;
        padding: 0;
        width: 100%;
    }
    
    .header__right .auth-container {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding: 0.5rem 0.25rem !important;
        box-sizing: border-box !important;
        min-height: auto !important;
    }
    
    .header__right .auth-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        min-height: auto !important;
    }
    
    .header__right .auth-card {
        padding: 1rem !important;
        border-radius: 18px !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.07) !important;
        width: 100% !important;
        margin: 0 !important;
        box-sizing: border-box !important;
        height: auto !important;
        min-height: auto !important;
        max-height: none !important;
    }
    
    .form-group {
        margin-bottom: 1rem;
    }
    
    .form-group label {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 2rem;
        padding: 1rem 1rem;
        border-radius: 8px;
        width: 100%;
        box-sizing: border-box;
    }
    
    .btn-verify,
    .btn-resend,
    .btn-submit {
        font-size: 1rem;
        padding: 0.8rem 1rem;
        border-radius: 8px;
        width: 100%;
        margin-top: 0.5rem;
    }
    
    .email-verification-group {
        gap: 0.5rem;
    }
    
    .verification-code-input {
        justify-content: center;
        gap: 0.3rem;
    }
    
    .code-input-single {
        width: 120px !important;
        font-size: 14px !important;
        height: 36px !important;
        padding: 8px !important;
    }
    
    .verification-inline-container {
        flex-direction: column;
        justify-content: center;
        gap: 0.5rem;
    }
    
    .timer {
        font-size: 0.9rem;
        padding: 6px 10px;
    }
    
    .main-content {
        padding: 0.5rem 0;
    }
}

.verification-code-input {
    display: flex;
    align-items: center;
    gap: 10px;
}

.timer {
    background-color: #f8f9fa;
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid #dee2e6;
    font-family: monospace;
    font-weight: bold;
    color: #495057;
}

@media (max-width: 768px) {
    .code-input-single {
        width: 150px !important;
        font-size: 16px !important;
        height: 40px !important;
    }
    
    .verification-inline-container {
        flex-direction: column;
        gap: 10px;
        justify-content: center;
    }
}

/* 기관회원 전용 모바일 스타일 */
@media (max-width: 768px) {
    /* 사용자 정보 섹션 모바일 최적화 */
    .user-info-section {
        max-height: 80vh !important; /* 모바일에서는 더 많은 공간 사용 */
        padding: 1rem !important;
        margin-top: 1rem !important;
        /* 모바일에서 스크롤 성능 최적화 */
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
    }
    
    /* 모바일에서 스크롤바 숨김 */
    .user-info-section::-webkit-scrollbar {
        width: 4px;
    }
    
    .user-info-section::-webkit-scrollbar-thumb {
        background: rgba(0,0,0,0.3);
        border-radius: 2px;
    }
    
    /* 파일 업로드 필드 */
    .form-group input[type="file"] {
        font-size: 14px !important;
        padding: 0.8rem !important;
        height: auto !important;
    }
    
    /* 기관회원 특화 필드들 모바일 최적화 */
    .form-info {
        font-size: 0.9rem;
        padding: 1rem;
        margin-top: 1.5rem;
        background: #f8f9fa;
        border-radius: 8px;
        border-left: 4px solid #6b53d3;
    }
    
    .form-info p {
        margin-bottom: 0.5rem;
        line-height: 1.4;
    }
    
    /* 약관 동의 섹션 모바일 최적화 */
    .agreement-section {
        margin-top: 1.5rem;
        padding: 1rem;
        background: #f8f9fa;
        border-radius: 8px;
    }
    
    .agreement-item {
        margin-bottom: 1rem;
    }
    
    .checkbox-label {
        display: flex;
        align-items: flex-start;
        gap: 0.75rem;
        cursor: pointer;
        font-size: 0.9rem;
        line-height: 1.4;
    }
    
    .checkbox-label input[type="checkbox"] {
        width: 18px;
        height: 18px;
        margin: 0;
        flex-shrink: 0;
        margin-top: 2px;
    }
    
    /* 긴 입력 필드들 모바일 최적화 */
    .form-group input[type="text"],
    .form-group input[type="email"],
    .form-group input[type="tel"],
    .form-group input[type="password"] {
        font-size: 16px !important; /* iOS 줌 방지 */
        padding: 1rem !important;
        border-radius: 8px !important;
    }
    
    /* 기관명, 담당자 정보 등 긴 텍스트 입력 필드 */
    .form-group input[placeholder*="기관명"],
    .form-group input[placeholder*="담당자"],
    .form-group input[placeholder*="부서"],
    .form-group input[placeholder*="직책"] {
        font-size: 16px !important;
    }
}

@media (max-width: 480px) {
    /* 작은 화면에서 추가 최적화 */
    .header__left {
        margin-bottom: 2rem; /* 숨기지 않고 위쪽에 배치 */
        order: -1; /* 우선 순위로 위에 배치 */
    }
    
    .header__content_inner {
        flex-direction: column;
        gap: 1rem;
    }
    
    .header__right {
        flex: none;
        width: 100%;
        min-height: auto;
    }

    /* 안내사항 모바일 최적화 */
    .header__notice {
        margin-top: 1rem;
        padding: 1rem;
        border-radius: 8px;
    }

    .notice__title {
        font-size: 0.95rem;
        margin-bottom: 0.8rem;
    }

    .notice__item {
        font-size: 0.85rem;
        margin-bottom: 0.5rem;
    }

    /* 사업자 정보 모바일 최적화 */
    .business-info-group {
        flex-direction: column !important;
        gap: 0.8rem !important;
    }

    .business-number-section,
    .business-certificate-section {
        flex: none !important;
    }

    .business-info-group label {
        font-size: 0.85rem !important;
    }

    .business-info-group input {
        padding: 8px 10px !important;
        font-size: 13px !important;
    }

    .business-info-group .form-text {
        font-size: 0.7rem !important;
    }

    /* 담당자 정보 모바일 최적화 */
    .manager-info-group {
        flex-direction: column !important;
        gap: 0.8rem !important;
    }

    .manager-name-section,
    .manager-phone-section {
        flex: none !important;
    }

    .manager-info-group label {
        font-size: 0.85rem !important;
    }

    .manager-info-group input {
        padding: 8px 10px !important;
        font-size: 13px !important;
    }

    .manager-info-group .form-text {
        font-size: 0.7rem !important;
    }
    
    /* 사용자 정보 섹션 작은 화면 최적화 */
    .user-info-section {
        max-height: 85vh !important; /* 작은 화면에서는 더 많은 공간 활용 */
        padding: 0.8rem !important;
        margin-top: 0.5rem !important;
        /* 부드러운 스크롤링 */
        scroll-behavior: smooth;
        /* 모바일 스크롤 최적화 */
        -webkit-overflow-scrolling: touch;
        /* 스크롤 끝에서 바운스 효과 */
        /* overscroll-behavior: contain; */
    }
    
    /* 작은 화면에서 스크롤바 완전히 숨김 */
    .user-info-section::-webkit-scrollbar {
        display: none;
    }
    
    /* Firefox에서 스크롤바 숨김 */
    .user-info-section {
        scrollbar-width: none;
    }
    
    /* 파일 업로드 필드 개선 */
    .form-group input[type="file"] {
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 0.8rem !important;
        background: #fff !important;
        border: 2px dashed #ddd !important;
        border-radius: 8px !important;
        text-align: center !important;
        font-size: 14px !important;
    }
    
    /* 약관 텍스트 크기 조정 */
    .agreement-text {
        font-size: 14px !important;
        line-height: 1.4 !important;
    }
    
    /* 가입 안내 정보 */
    .form-info {
        font-size: 13px !important;
        padding: 0.8rem !important;
    }
    
    /* 버튼 크기 최적화 */
    .btn-submit {
        font-size: 16px !important;
        padding: 1rem !important;
        margin-top: 1.5rem !important;
        font-weight: 600 !important;
    }
}

/* 기관회원 가입 안내 스타일 */
.header__notice {
    margin-top: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #6b53d3;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(107, 83, 211, 0.1);
}

.notice__title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #6b53d3;
    margin-bottom: 1rem;
}

.notice__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.notice__item {
    font-size: 0.95rem;
    color: #495057;
    margin-bottom: 0.7rem;
    padding-left: 1rem;
    position: relative;
    line-height: 1.5;
}

.notice__item::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #6b53d3;
    font-weight: bold;
}

.notice__item:last-child {
    margin-bottom: 0;
}

/* 사업자 정보 같은 라인 배치 */
.business-info-group {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.business-number-section,
.business-certificate-section {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.business-number-section {
    flex: 1.2; /* 사업자번호 영역을 조금 더 크게 */
}

.business-certificate-section {
    flex: 0.8; /* 파일 업로드 영역을 조금 작게 */
}

.business-info-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
    display: block;
}

.business-info-group input {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.business-info-group input:focus {
    outline: none;
    border-color: #6b53d3;
    box-shadow: 0 0 0 3px rgba(107, 83, 211, 0.1);
}

.business-info-group .form-text {
    font-size: 0.75rem;
    color: #6c757d;
    margin-top: 0.25rem;
    line-height: 1.3;
}

.business-info-group .field-error {
    color: #dc3545;
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

/* 담당자 정보 같은 라인 배치 */
.manager-info-group {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.manager-name-section,
.manager-phone-section {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.manager-info-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
    display: block;
}

.manager-info-group input {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.manager-info-group input:focus {
    outline: none;
    border-color: #6b53d3;
    box-shadow: 0 0 0 3px rgba(107, 83, 211, 0.1);
}

.manager-info-group .form-text {
    font-size: 0.75rem;
    color: #6c757d;
    margin-top: 0.25rem;
    line-height: 1.3;
}

.manager-info-group .field-error {
    color: #dc3545;
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

/* 태블릿 크기 최적화 */
@media (min-width: 481px) and (max-width: 768px) {
    .header__content_inner {
        gap: 2rem;
    }
    
    .header__left {
        flex: 0.8;
    }
    
    .header__right {
        flex: 1.2;
    }
    
    .header__title {
        font-size: 28px;
    }
    
    .header__subtitle {
        font-size: 16px;
    }
    
    .benefits__title {
        font-size: 1.1rem;
    }
    
    .benefits__item {
        font-size: 0.9rem;
    }

    .header__notice {
        margin-top: 1.5rem;
        padding: 1.2rem;
    }

    .notice__title {
        font-size: 1rem;
    }

    .notice__item {
        font-size: 0.9rem;
    }

    /* 사업자 정보 태블릿 최적화 */
    .business-info-group {
        flex-direction: column;
        gap: 1rem;
    }

    .business-number-section,
    .business-certificate-section {
        flex: none;
    }

    /* 담당자 정보 태블릿 최적화 */
    .manager-info-group {
        flex-direction: column;
        gap: 1rem;
    }

    .manager-name-section,
    .manager-phone-section {
        flex: none;
    }
}

/* 비밀번호 요구사항 표시 스타일 - 툴팁 디자인 */
.password-input-wrapper {
    position: relative;
}

.password-requirements {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    z-index: 10000;
    padding: 0.75rem 0.875rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 8px;
    border: 1px solid #dee2e6;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), 0 2px 6px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.password-requirements.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* 툴팁 화살표 효과 */
.password-requirements::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 20px;
    width: 12px;
    height: 12px;
    background: #ffffff;
    border-left: 1px solid #dee2e6;
    border-top: 1px solid #dee2e6;
    transform: rotate(45deg);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.requirement {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.2rem 0.375rem;
    margin: 0.15rem 0;
    font-size: 0.8125rem;
    border-radius: 4px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.requirement:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

.requirement.met {
    color: #198754;
    background-color: rgba(25, 135, 84, 0.05);
}

.requirement.met .req-icon {
    color: #198754;
    font-weight: bold;
    font-size: 0.875rem;
    animation: checkmark 0.3s ease-out;
}

@keyframes checkmark {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.requirement.unmet {
    color: #6c757d;
}

.requirement.unmet .req-icon {
    color: #dc3545;
    opacity: 0.6;
}

.req-icon {
    font-size: 0.75rem;
    width: 14px;
    height: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex-shrink: 0;
}

.req-text {
    font-weight: 500;
    letter-spacing: -0.01em;
    font-size: 0.8125rem;
}

/* 비밀번호 일치 피드백 - 툴팁 스타일 */
.password-match-feedback {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    z-index: 10000;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), 0 2px 6px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.password-match-feedback.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* 툴팁 화살표 효과 */
.password-match-feedback::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 20px;
    width: 12px;
    height: 12px;
    border-left: 1px solid;
    border-top: 1px solid;
    transform: rotate(45deg);
}

.password-match-feedback.match {
    background: linear-gradient(135deg, #d4edda 0%, #e9f7ec 100%);
    color: #155724;
    border: 1px solid #c3e6cb;
}

.password-match-feedback.match::before {
    background: #d4edda;
    border-color: #c3e6cb;
}

.password-match-feedback.no-match {
    background: linear-gradient(135deg, #f8d7da 0%, #fce8ea 100%);
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.password-match-feedback.no-match::before {
    background: #f8d7da;
    border-color: #f5c6cb;
}

/* 본인인증 섹션 스타일 (이메일 섹션과 동일) */
#identity-section {
    margin-bottom: 0;
}

#identity-section .form-group {
    margin-bottom: 0;
}

/* 본인인증 그룹 - 이메일 인증 그룹과 동일한 스타일 */
.identity-verification-group {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.identity-verification-group .btn-verify {
    background: #6b53d3;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    min-width: 120px;
}

.identity-verification-group .btn-verify:hover {
    background: #5a45c0;
    box-shadow: 0 2px 8px rgba(107, 83, 211, 0.3);
}

.identity-verification-group .btn-verify:disabled {
    background: #6c757d !important;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.identity-verification-group .verification-status {
    flex: 1;
    display: flex;
    align-items: center;
}

.identity-verification-group .verification-check {
    display: inline-block;
    color: #28a745;
    font-weight: 600;
    font-size: 0.9rem;
}

}

