/* 로그인 페이지 전용 스타일 */
@import url('common.css');

/* 로그인 탭 스타일 */
.login-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 32px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 4px;
    backdrop-filter: blur(10px);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
}

.login-tab-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-tabs::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 4px;
    width: calc(50% - 4px);
    height: calc(100% - 8px);
    background: #5a67d8;
    border-radius: 10px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 0;
}

.login-tabs[data-active-tab="cert"]::after {
    transform: translateX(100%);
}

/* ID/PW 탭이 활성화일 때 툴팁 아이콘 색상 변경 */
.login-tab-wrapper:has(.login-tab.active) .tooltip-icon {
    color: #ffffff;
    opacity: 0.9;
}

.login-tab-wrapper:has(.login-tab.active) .tooltip-icon:hover {
    opacity: 1;
}

.login-tab {
    flex: 1;
    padding: 14px 24px;
    background: transparent;
    border: none;
    color: #5a67d8;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 10px;
    position: relative;
    z-index: 1;
    width: 100%;
}

.login-tab-wrapper .login-tab {
    flex: 1;
}

.login-tab:hover {
    color: rgba(90, 103, 216, 0.8);
}

.login-tab.active {
    color: #fff;
}

.login-tab i {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.login-tab.active i {
    transform: scale(1.1);
}

/* 툴팁 스타일 */
.tooltip-container {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

.tooltip-icon {
    color: #5a67d8;
    font-size: 14px;
    cursor: pointer;
    transition: color 0.3s ease;
    opacity: 0.7;
}

.tooltip-icon:hover {
    color: #4c51bf;
    opacity: 1;
}

.tooltip-content {
    position: absolute;
    bottom: calc(100% + 10px);
    right: 0;
    width: 280px;
    padding: 12px 16px;
    background: #1f2937;
    color: #ffffff;
    font-size: 13px;
    line-height: 1.5;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    transform: translateY(-5px);
    pointer-events: none;
    white-space: normal;
    word-wrap: break-word;
}

.tooltip-content::after {
    content: '';
    position: absolute;
    top: 100%;
    right: 20px;
    border: 6px solid transparent;
    border-top-color: #1f2937;
}

.tooltip-container:hover .tooltip-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* 모바일 반응형 */
@media (max-width: 768px) {
    .tooltip-content {
        width: 240px;
        font-size: 12px;
        right: -10px;
    }
    
    .tooltip-container {
        right: 4px;
    }
}

/* 공동인증서 로그인 폼 */

.cert-login-info {
    text-align: center;
    margin-bottom: 24px;
    color: #5a67d8;
    font-size: 14px;
}

.cert-login-info i {
    margin-right: 6px;
    color: #3b82f6;
}

.cert-login-section {
    display: flex;
    justify-content: center;
    align-items: center;
}

body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}


/* Login Container */
.login-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px 0px 10px 0px;
    z-index: 10;
}

/* Login Card */
.login-card {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 0;
    box-shadow: 0 8px 32px rgba(90, 103, 216, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    animation: slideUp 0.8s ease-out;
    display: flex;
    align-items: stretch;
    overflow: hidden;
    max-width: 1000px;
    width: 100%;
}

/* 왼쪽 이미지 영역 */
.login-image-section {
    flex: 1;
    min-width: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: rgba(255, 255, 255, 0.1);
    animation: slideInLeft 0.8s ease-out;
}

.login-image {
    width: 100%;
    height: auto;
    object-fit: contain;
    max-height: 600px;
    border-radius: 16px;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 오른쪽 로그인 폼 영역 */
.login-form-section {
    flex: 1;
    min-width: 400px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

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

/* Header */
.login-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
}

.logo {
    align-items: center;
    justify-content: center;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.logo i {
    font-size: 2.5rem;
    color: #5a67d8;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.logo h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #4a5568;
    background-clip: text;
    margin-bottom: 5px;
}

.logo span {
    font-weight: 700;
    color: #4a5568;
    line-height: 1;
}

.logo span:first-of-type {
    margin-bottom: 0;
}

.logo-image {
    height: 35px;
}

.logo h3 {
    font-size: 1rem;
    font-weight: 400;
    color: #4a5568;
    margin: 0;
    letter-spacing: 1px;
    opacity: 0.9;
}

.subtitle {
    font-size: 1rem;
    color: #666;
    font-weight: 500;
    margin-bottom: 5px;
}

.description {
    font-size: 0.9rem;
    color: #888;
}

/* Form Styles */
.login-form {
    margin-bottom: 20px;
}

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

/* 로그인 페이지 전용 입력 필드 스타일 */

.input-wrapper input::placeholder {
    color: #9ca3af;
}

/* 브라우저 자동완성 스타일 오버라이드 */
.input-wrapper input:-webkit-autofill,
.input-wrapper input:-webkit-autofill:hover,
.input-wrapper input:-webkit-autofill:focus,
.input-wrapper input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px #fff inset !important;
    -webkit-text-fill-color: #333 !important;
    background-color: #fff !important;
    border-color: #5a67d8 !important;
}

.input-wrapper input:-webkit-autofill + .input-icon {
    color: #4a5568 !important;
}

/* Form Options */
.form-options {
    margin-bottom: 10px;
    font-size: 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.forgot-password {
    color: #5a67d8;
    text-decoration: none;
    transition: color 0.3s ease;
}

.forgot-password:hover {
    color: #4c51bf;
}

.forgot-id-notice {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    font-size: 0.85rem;
    color: #718096;
    padding: 8px 12px;
    background: #f7fafc;
    border-radius: 6px;
    border-left: 3px solid #5a67d8;
}

.forgot-id-notice i {
    color: #5a67d8;
    font-size: 0.9rem;
}

/* Login Button */
.login-btn {
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, #5a67d8, #4c51bf);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    box-shadow: 0 4px 12px rgba(90, 103, 216, 0.3);
    letter-spacing: 0.5px;
}

/* 호버와 액티브 효과 제거됨 */

/* 브라우저 기본 폼 유효성 검사 스타일 오버라이드 */
.login-btn:invalid,
.login-btn:valid,
.login-btn:focus,
.login-btn:focus-visible,
.login-btn:focus-within {
    transform: none !important;
    scale: 1 !important;
    width: 100% !important;
    height: auto !important;
    box-shadow: 0 4px 12px rgba(90, 103, 216, 0.3) !important;
}

/* 폼 유효성 검사 시 버튼 크기 고정 */
form:invalid .login-btn,
form:valid .login-btn,
form:has(input:invalid) .login-btn,
form:has(input:valid) .login-btn {
    transform: none !important;
    scale: 1 !important;
    width: 100% !important;
    height: auto !important;
}

/* 입력 필드 required 상태에서도 버튼 크기 고정 */
input:required:invalid + .login-btn,
input:required:valid + .login-btn,
.input-wrapper:has(input:required:invalid) + .login-btn,
.input-wrapper:has(input:required:valid) + .login-btn {
    transform: none !important;
    scale: 1 !important;
    width: 100% !important;
    height: auto !important;
}

/* 로그인 페이지 전용 모달 스타일 */

.modal-content {
    background: white;
    border-radius: 15px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    color: #a0aec0;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #4a5568;
    transform: scale(1.1);
}

.modal-close:active {
    transform: scale(0.95);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    padding: 20px 25px 15px;
    border-bottom: 1px solid #e1e5e9;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    color: #4a5568;
    font-size: 1.2rem;
    font-weight: 600;
}

.modal-close {
    font-size: 1.5rem;
    color: #999;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s ease;
}

.modal-close:hover {
    color: #5a67d8;
}

.modal-body {
    padding: 20px 25px;
}

.modal-body p {
    margin: 0;
    color: #4a5568;
    line-height: 1.6;
}

.modal-footer {
    padding: 15px 25px 20px;
    text-align: right;
}

.modal-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.modal-btn-primary {
    background: linear-gradient(135deg, #5a67d8, #4c51bf);
    color: white;
}

.modal-btn-primary:hover {
    background: linear-gradient(135deg, #4c51bf, #5a67d8);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(90, 103, 216, 0.3);
}

.login-btn span {
    position: relative;
    z-index: 1;
}

/* Footer */
.login-footer {
    text-align: center;
    margin-top: 20px;
}

.login-footer p {
    color: #666;
    font-size: 0.9rem;
}

.register-link {
    color: #5a67d8;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.register-link:hover {
    color: #5a67d8;
}

/* Login Page Footer */
.login-page-footer {
    padding: 20px 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    padding: 0 20px;
}

.footer-company-info {
    text-align: center;
}

.footer-company-name {
    margin-bottom: 12px;
}

.footer-company-name strong {
    font-size: 0.95rem;
    color: #4a5568;
    font-weight: 600;
}

.footer-company-details {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 12px;
    font-size: 0.85rem;
    color: #718096;
}

.footer-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer-item i {
    color: #5a67d8;
    font-size: 0.9rem;
}

.footer-item span {
    color: #718096;
}

.footer-copyright {
    margin-top: 8px;
}

.footer-copyright p {
    margin: 0;
    font-size: 0.8rem;
    color: #a0aec0;
}

/* 반응형 디자인 - Footer */
@media (max-width: 768px) {
    .login-page-footer {
        padding: 15px 0;
        margin-top: 20px;
    }
    
    .footer-company-details {
        flex-direction: column;
        gap: 10px;
    }
    
    .footer-item {
        justify-content: center;
    }
    
    .footer-company-name strong {
        font-size: 0.9rem;
    }
    
    .footer-company-details {
        font-size: 0.8rem;
    }
    
    .footer-copyright p {
        font-size: 0.75rem;
    }
}

/* Alert Messages */
.alert {
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    animation: slideDown 0.3s ease-out;
    transition: all 0.5s ease-out;
    overflow: hidden;
    max-height: 100px;
}

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

.alert-error {
    background: #fee;
    color: #c33;
    border: 1px solid #fcc;
    margin-top: 20px;
}

.alert-success {
    background: #efe;
    color: #363;
    border: 1px solid #cfc;
    margin-top: 20px;
}

.alert i {
    margin-right: 8px;
    font-size: 1.1rem;
}

.alert-error i {
    color: #dc3545;
}

.alert-success i {
    color: #5a67d8;
}

/* Register Page Specific Styles */
.register-container {
    max-width: 800px;
    width: 100%;
    position: relative;
    z-index: 10;
}

.register-container .login-card {
    padding: 40px;
    min-height: 600px;
    max-height: 90vh;
    overflow-y: auto;
}

/* 스크롤바 스타일링 */
.register-container .login-card::-webkit-scrollbar {
    width: 4px;
}

.register-container .login-card::-webkit-scrollbar-track {
    background: transparent;
}

.register-container .login-card::-webkit-scrollbar-thumb {
    background: rgba(90, 103, 216, 0.3);
    border-radius: 2px;
}

.register-container .login-card::-webkit-scrollbar-thumb:hover {
    background: rgba(90, 103, 216, 0.5);
}

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

.terms-link {
    color: #5a67d8;
    text-decoration: underline;
    font-weight: 500;
    transition: color 0.3s ease;
}

.terms-link:hover {
    color: #4c51bf;
}

.checkmark {
    position: relative;
    display: inline-block;
    width: 18px;
    height: 18px;
    background: #fff;
    border: 2px solid #ddd;
    border-radius: 3px;
    margin-right: 8px;
    vertical-align: middle;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.remember-me {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-size: 0.9rem;
    line-height: 1.4;
    padding: 5px;
    margin: -5px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.remember-me:hover {
    background-color: rgba(90, 103, 216, 0.1);
}

.remember-me input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    width: 18px;
    height: 18px;
    margin: 0;
    z-index: 20;
}

.remember-me input[type="checkbox"]:checked + .checkmark {
    background: #5a67d8;
    border-color: #5a67d8;
}

.remember-me input[type="checkbox"]:checked + .checkmark:after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Password strength indicator */
.password-strength {
    margin-top: 10px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    font-size: 0.9rem;
    color: #4a5568;
    width: 100%;
}

.strength-bar {
    height: 6px;
    background: #e1e5e9;
    border-radius: 3px;
    overflow: hidden;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.strength-fill {
    height: 100%;
    transition: width 0.3s ease, background-color 0.3s ease;
    width: 0%;
    border-radius: 3px;
}

.strength-weak { 
    background: linear-gradient(90deg, #dc3545, #e53e3e);
    box-shadow: 0 1px 3px rgba(220, 53, 69, 0.3);
}
.strength-medium { 
    background: linear-gradient(90deg, #ffc107, #ffb300);
    box-shadow: 0 1px 3px rgba(255, 193, 7, 0.3);
}
.strength-strong { 
    background: linear-gradient(90deg, #28a745, #20c997);
    box-shadow: 0 1px 3px rgba(40, 167, 69, 0.3);
}

/* Step-by-step Registration Styles */
.progress-steps {
    display: flex;
    justify-content: space-between;
    margin: 30px 0;
    padding: 0 20px;
}

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

/* 등록 페이지의 단계 표시만 적용 (비밀번호 찾기 모달 제외) */
.register-container .step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 15px;
    left: 60%;
    width: 80%;
    height: 2px;
    background: #e1e5e9;
    z-index: 1;
}

.register-container .step.active:not(:last-child)::after {
    background: #5a67d8;
}

.step-number {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #e1e5e9;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
    margin-bottom: 8px;
    position: relative;
    z-index: 2;
}

.step.active .step-number {
    background: #5a67d8;
    color: white;
}

.step.completed .step-number {
    background: #28a745;
    color: white;
}

.step.completed .step-number::after {
    content: '✓';
    font-size: 0.8rem;
}

.step-title {
    font-size: 0.8rem;
    color: #666;
    text-align: center;
    font-weight: 500;
}

.step.active .step-title {
    color: #5a67d8;
    font-weight: 600;
}

.step-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* 1단계는 왼쪽 정렬 유지 */
#step1 {
    text-align: left;
}

/* 2단계부터 중앙 정렬 */
#step2, #step3, #step4, #step5, #step6, #step7 {
    text-align: center;
}

#step1 .form-group {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

#step2 .form-group,
#step3 .form-group,
#step4 .form-group,
#step5 .form-group,
#step6 .form-group {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}

/* 각 단계별 중앙 정렬 */
#step2, #step3, #step4, #step5, #step6 {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* 이메일 인증 그룹 중앙 정렬 */
#emailVerifyGroup {
    flex-direction: column;
    align-items: center;
    width: 100%;
}

#emailVerifyGroup[style*="display: flex"] {
    display: flex !important;
}

#emailVerifyGroup .input-wrapper {
    width: 80%;
    max-width: 400px;
}

.step-content h3 {
    color: #5a67d8;
    margin-bottom: 20px;
    font-size: 1.3rem;
    text-align: center;
}

.terms-content {
    margin-bottom: 20px;
}

.terms-box {
    background: #f8f9fa;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}

.terms-box h4 {
    color: #5a67d8;
    margin-bottom: 10px;
    font-size: 1rem;
}

.terms-text {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #666;
}

.terms-text p {
    margin-bottom: 5px;
}

.check-btn {
    background: #5a67d8;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: background 0.3s ease;
    margin-left: 10px;
}

.check-btn:hover {
    background: #4c51bf;
}

.check-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.help-text {
    font-size: 0.8rem;
    color: #666;
    margin-top: 5px;
}

.business-type {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    justify-content: center;
}

/* 사업자 정보 결과 스타일 */
.business-result {
    background: #f8f9fa;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    text-align: center;
}

.business-result.existing {
    border-color: #28a745;
    background: rgba(40, 167, 69, 0.1);
}

.business-result i {
    font-size: 2rem;
    margin-bottom: 10px;
}

.business-result.existing i {
    color: #28a745;
}

.business-result h4 {
    color: #5a67d8;
    margin-bottom: 15px;
}

/* 신규 거래처 등록 제목 스타일 */
#newBusinessForm h4 {
    color: #5a67d8;
    margin-bottom: 20px;
    font-weight: 600;
    text-align: center;
}

/* 7단계 완료 버튼 중앙 정렬 */
#step7 .step-navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    border-top: none;
}

/* 5단계 사업자 정보 개선 스타일 */
.business-step-section {
    background: #f8f9fa;
    border: 1px solid #e1e5e9;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.business-step-section:hover {
    box-shadow: 0 4px 12px rgba(90, 103, 216, 0.1);
}

.step-header {
    margin-bottom: 20px;
    text-align: center;
}

.step-header h4 {
    color: #5a67d8;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.step-header h4 i {
    color: #5a67d8;
}

.step-header p {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
}

.business-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e1e5e9;
}

.info-item .label {
    font-weight: 600;
    color: #5a67d8;
    min-width: 80px;
}

.info-item .value {
    color: #333;
    text-align: right;
    flex: 1;
}

.business-info p {
    margin: 5px 0;
    color: #666;
}

/* 폼 셀렉트 스타일 */
.form-select {
    width: 100%;
    padding: 15px 15px 15px 45px;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    font-size: 1rem;
    background: #fff;
    transition: all 0.3s ease;
    outline: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
}

.form-select:focus {
    border-color: #5a67d8;
    box-shadow: 0 0 0 3px rgba(90, 103, 216, 0.2);
}

/* 2열 폼 레이아웃 */
.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    margin-top: 20px;
}

.form-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

/* 3열 폼 레이아웃 (대표자명, 업태, 업종) */
.form-row:has(.form-group:nth-child(3)) .form-group {
    flex: 1;
    min-width: 0;
}

/* 주소 input 전체 너비 */
.form-row:has(.form-group:nth-child(1)) .form-group:only-child {
    flex: none;
    width: 100%;
}

/* 구분선 추가 */
.form-row:nth-of-type(3) {
    border-bottom: 1px solid #e1e5e9;
    padding-bottom: 20px;
    margin-bottom: 25px;
}

.form-row:nth-of-type(5) {
    border-bottom: 1px solid #e1e5e9;
    padding-bottom: 20px;
    margin-bottom: 25px;
}

/* 신규 거래처 폼 스타일 */
#newBusinessForm {
    max-width: 100%;
}

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

#newBusinessForm .input-wrapper {
    width: 100%;
    max-width: none;
}

/* 주소 검색 버튼이 있는 경우 */
#newBusinessForm .input-wrapper:has(.check-btn) {
    position: relative;
}

#newBusinessForm .input-wrapper .check-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    padding: 8px 12px;
    font-size: 0.8rem;
}

.radio-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.9rem;
}

.radio-option input[type="radio"] {
    display: none;
}

.radio-custom {
    width: 18px;
    height: 18px;
    border: 2px solid #ddd;
    border-radius: 50%;
    margin-right: 8px;
    position: relative;
    transition: all 0.3s ease;
}

.radio-option input[type="radio"]:checked + .radio-custom {
    border-color: #5a67d8;
    background: #5a67d8;
}

.radio-option input[type="radio"]:checked + .radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: white;
}

.completion-message {
    text-align: center;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#step7 {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.completion-message i {
    font-size: 4rem;
    color: #5a67d8;
    margin-bottom: 20px;
}

.completion-message p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 10px;
}

.step-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e1e5e9;
}

/* 로그인 페이지 전용 버튼 스타일 */

/* 로그인 페이지 전용 input-wrapper 스타일 */

.input-wrapper .check-btn {
    position: absolute;
    right: 10px;
    z-index: 3;
    margin-left: 0;
}

/* Input wrapper width for all steps */
#step2 .input-wrapper,
#step3 .input-wrapper,
#step4 .input-wrapper,
#step6 .input-wrapper {
    width: 80%;
    max-width: 400px;
}

#step5 .input-wrapper{
    width: 100%;
}

/* 비밀번호 강도 표시를 위한 추가 공간 */
#step3 .form-group:first-child {
    width: 100%;
    max-width: 500px;
}

#step3 .form-group:first-child .input-wrapper {
    width: 100%;
    max-width: 500px;
}

.help-text {
    text-align: center;
    margin-top: 10px;
}


/* Responsive Design */
@media (max-width: 480px) {
    .login-container {
        padding: 15px;
    }
    
    .login-card {
        flex-direction: column;
    }
    
    .login-image-section {
        min-width: 100%;
        padding: 20px;
    }
    
    .login-image {
        max-height: 250px;
    }
    
    .login-form-section {
        min-width: 100%;
        padding: 20px;
    }
    
    .login-card {
        padding: 30px 20px;
    }
    
    .logo span {
        font-weight: 700;
        color: #4a5568;
    }
    
    .logo i {
        font-size: 2rem;
    }
    
    .form-options {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
}

@media (max-width: 360px) {
    .login-card {
        padding: 25px 15px;
    }
    
    .logo h1 {
        font-size: 1.8rem;
    }
}

/* 이메일 인증 타이머 스타일 */
.timer-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
    padding: 16px 24px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(90, 103, 216, 0.2);
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #4a5568;
    box-shadow: 0 8px 25px rgba(90, 103, 216, 0.15);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.timer-display::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(90, 103, 216, 0.1), transparent);
    transition: left 0.5s ease;
}

.timer-display.active::before {
    left: 100%;
}

.timer-display i {
    font-size: 1.2rem;
    color: #5a67d8;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.timer-display .timer-text {
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.5px;
}

.timer-display .timer-countdown {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    color: #5a67d8;
    min-width: 60px;
    text-align: center;
}

.timer-display.warning {
    border-color: rgba(220, 53, 69, 0.3);
    background: rgba(255, 245, 245, 0.95);
    color: #dc3545;
}

.timer-display.warning i {
    color: #dc3545;
    animation: shake 0.5s infinite;
}

.timer-display.warning .timer-countdown {
    color: #dc3545;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-2px); }
    75% { transform: translateX(2px); }
}

.timer-display.expired {
    border-color: rgba(108, 117, 125, 0.3);
    background: rgba(248, 249, 250, 0.95);
    color: #6c757d;
}

.timer-display.expired i {
    color: #6c757d;
    animation: none;
}

.timer-display.expired .timer-countdown {
    color: #6c757d;
}

/* 인증 방법 선택 스타일 */
.verification-method-selector {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    justify-content: center;
}

.method-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px 25px;
    background: #f8f9fa;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

.method-option:hover {
    border-color: #5a67d8;
    background: #fff;
    box-shadow: 0 4px 12px rgba(90, 103, 216, 0.1);
}

.method-option.active {
    border-color: #5a67d8;
    background: linear-gradient(135deg, #5a67d8, #4c51bf);
    color: white;
    box-shadow: 0 4px 12px rgba(90, 103, 216, 0.3);
}

.method-option i {
    font-size: 1.5rem;
    color: #5a67d8;
}

.method-option.active i {
    color: white;
}

.method-option span {
    font-weight: 600;
    font-size: 0.9rem;
}

/* 인증 섹션 스타일 */
.verification-section {
    margin-top: 20px;
}

/* 파일 업로드 스타일 */
.file-upload-container {
    margin-top: 10px;
}

.file-upload-area {
    border: 2px dashed #5a67d8;
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
}

.file-upload-area:hover {
    border-color: #4c51bf;
    background: rgba(255, 255, 255, 0.8);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(90, 103, 216, 0.15);
}

.file-upload-area.dragover {
    border-color: #4c51bf;
    background: rgba(90, 103, 216, 0.1);
    transform: scale(1.02);
}

.file-upload-icon {
    margin-bottom: 15px;
}

.file-upload-icon i {
    font-size: 2.5rem;
    color: #5a67d8;
}

.file-upload-text {
    color: #4a5568;
}

.file-upload-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.file-upload-subtitle {
    font-size: 0.9rem;
    color: #718096;
}

.file-preview {
    margin-top: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.file-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.file-icon {
    font-size: 1.5rem;
    color: #e53e3e;
}

.file-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.file-name {
    font-weight: 600;
    color: #2d3748;
    font-size: 0.9rem;
}

.file-size {
    font-size: 0.8rem;
    color: #718096;
}

.file-remove {
    background: #e53e3e;
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.file-remove:hover {
    background: #c53030;
    transform: scale(1.1);
}

.file-remove i {
    font-size: 0.8rem;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.form-label i {
    color: #5a67d8;
}

.required {
    color: #e53e3e;
    font-weight: bold;
}

/* 비밀번호 찾기 모달 스타일 */
.forgot-password-steps {
    max-width: 400px;
    margin: 0 auto;
}

.step {
    text-align: center;
}

.step-content {
    padding: 20px 0;
}

.step-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #5a67d8, #4c51bf);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    box-shadow: 0 8px 25px rgba(90, 103, 216, 0.3);
}

.step-icon.success {
    background: linear-gradient(135deg, #38a169, #2f855a);
}

.step h4 {
    color: #2d3748;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.step p {
    color: #718096;
    font-size: 0.9rem;
    margin-bottom: 25px;
    line-height: 1.5;
}

.step .form-group {
    margin-bottom: 20px;
    text-align: center;
}

.step .form-group input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.step .form-group input:focus {
    outline: none;
    border-color: #5a67d8;
    box-shadow: 0 0 0 3px rgba(90, 103, 216, 0.2);
    background: rgba(255, 255, 255, 1);
}

.step .form-group input::placeholder {
    color: #a0aec0;
}

.verification-code-container {
    margin-bottom: 20px;
}

.verification-code-container input {
    width: 100%;
    padding: 15px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1.2rem;
    text-align: center;
    letter-spacing: 2px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.verification-code-container input:focus {
    outline: none;
    border-color: #5a67d8;
    box-shadow: 0 0 0 3px rgba(90, 103, 216, 0.2);
}

.timer-display {
    background: rgba(90, 103, 216, 0.1);
    border: 1px solid rgba(90, 103, 216, 0.2);
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 20px;
}

.timer-text {
    color: #4a5568;
    font-size: 0.9rem;
    margin-right: 8px;
}

.timer-countdown {
    color: #5a67d8;
    font-weight: 600;
    font-size: 1rem;
}

.step-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}


/* 로그인 페이지 전용 step 버튼 스타일 */

/* ========================================
   최초 로그인 모달 스타일
   ======================================== */

/* 모달 배경 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

/* 약관 스크롤 컨테이너 */
.terms-scroll-container {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    background: #f8f9fa;
    margin-bottom: 20px;
}

.terms-scroll-container::-webkit-scrollbar {
    width: 8px;
}

.terms-scroll-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.terms-scroll-container::-webkit-scrollbar-thumb {
    background: #5a67d8;
    border-radius: 4px;
}

.terms-scroll-container::-webkit-scrollbar-thumb:hover {
    background: #4c51bf;
}

.terms-content-text {
    color: #2d3748;
    line-height: 1.8;
    font-size: 0.95rem;
}

.terms-content-text h4 {
    color: #5a67d8;
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 20px;
    margin-bottom: 10px;
}

.terms-content-text h4:first-child {
    margin-top: 0;
}

.terms-content-text p {
    margin-bottom: 12px;
    color: #4a5568;
}

.terms-content-text ul {
    margin: 10px 0 15px 20px;
    color: #4a5568;
}

.terms-content-text ul li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.terms-content-text strong {
    color: #2d3748;
    font-weight: 600;
}

/* 약관 동의 섹션 */
.terms-agree-section {
    padding: 15px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 15px;
}

.terms-agree-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.95rem;
    color: #2d3748;
    transition: opacity 0.3s ease;
}

.terms-agree-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #5a67d8;
}

.terms-agree-label:not([style*="cursor: not-allowed"]) {
    cursor: pointer;
}

.terms-agree-label:not([style*="cursor: not-allowed"]):hover {
    color: #5a67d8;
}

/* 약관 동의 안내 문구 */
.terms-agree-notice {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    padding: 10px 12px;
    background: #e6e8ff;
    border: 1px solid #5a67d8;
    border-radius: 6px;
    color: #4a5568;
    font-size: 0.875rem;
    animation: fadeIn 0.3s ease;
}

.terms-agree-notice i {
    color: #5a67d8;
    font-size: 1rem;
}

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

/* 사업자등록증 정보 표시 */
.business-info-section {
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.business-info-section h4 {
    margin: 0 0 15px 0;
    color: #4a5568;
    font-size: 1rem;
    font-weight: 600;
}

.business-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.business-info-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.business-info-item label {
    font-size: 0.85rem;
    color: #718096;
    font-weight: 500;
}

.business-info-item-full {
    grid-column: 1 / -1;
}

.business-info-value {
    font-size: 0.95rem;
    color: #2d3748;
    padding: 8px 12px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    min-height: 20px;
}

/* 사업자등록증 정보 확인 체크박스 */
.business-info-confirm-section {
    margin-top: 20px;
    padding: 15px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

.business-info-confirm-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.95rem;
    color: #2d3748;
    transition: color 0.3s ease;
}

.business-info-confirm-label:hover {
    color: #5a67d8;
}

.business-info-confirm-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #5a67d8;
}

@media (max-width: 768px) {
    .business-info-grid {
        grid-template-columns: 1fr;
    }
    
    .business-info-item-full {
        grid-column: 1;
    }
}

/* 사용자 정보 입력 정보 */
.user-info-input-info {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    padding: 10px 12px;
    background: #e6e8ff;
    border: 1px solid #5a67d8;
    border-radius: 6px;
    color: #4a5568;
    font-size: 0.875rem;
    animation: fadeIn 0.3s ease;

}

.user-info-input-info i {
    color: #5a67d8;
    font-size: 1rem;
}

/* 비밀번호 변경 정보 */
.password-change-info {
    background: #e6f3ff;
    border: 1px solid #b3d9ff;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.password-change-info p {
    margin: 0 0 10px 0;
    color: #2d3748;
    font-size: 0.95rem;
}

.password-change-info p:last-child {
    margin-bottom: 0;
}

.password-change-info i {
    color: #5a67d8;
    margin-right: 8px;
}

.password-requirements {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #b3d9ff;
}

.password-requirements strong {
    color: #2d3748;
    display: block;
    margin-bottom: 5px;
}

.password-requirements ul {
    margin: 5px 0 0 20px;
    color: #4a5568;
}

/* 비밀번호 유효성 검증 메시지 */
.password-validation-message,
.password-match-message {
    margin-top: 8px;
    font-size: 0.85rem;
    min-height: 20px;
}

.password-validation-message ul {
    margin: 5px 0 0 20px;
    padding: 0;
}

.password-validation-message li {
    margin-bottom: 3px;
}

/* 버튼 스타일 */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, #5a67d8, #4c51bf);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #4c51bf, #5a67d8);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(90, 103, 216, 0.3);
}

.btn-primary:disabled {
    background: #cbd5e0;
    color: #a0aec0;
    cursor: not-allowed;
    transform: none;
}

/* 약관 동의 버튼 - 비활성화 상태에서도 잘 보이도록 */
#termsNextBtn:disabled {
    background: #6b7280 !important;
    color: white !important;
    opacity: 0.9 !important;
    cursor: not-allowed;
    box-shadow: 0 2px 8px rgba(107, 114, 128, 0.3);
}

#termsNextBtn:disabled i {
    color: white !important;
}

.btn-secondary {
    background: #e2e8f0;
    color: #4a5568;
}

.btn-secondary:hover {
    background: #cbd5e0;
    transform: translateY(-1px);
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 15px;
}

/* 반응형 디자인 */
@media (max-width: 1024px) {
    .login-card {
        flex-direction: column;
        max-width: 500px;
    }
    
    .login-image-section {
        min-width: 100%;
        padding: 30px;
    }
    
    .login-image {
        max-height: 400px;
    }
    
    .login-form-section {
        min-width: 100%;
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .login-container {
        padding: 20px;
    }
    
    .login-card {
        max-width: 100%;
    }
    
    .login-image-section {
        padding: 20px;
    }
    
    .login-image {
        max-height: 300px;
    }
    
    .login-form-section {
        padding: 20px;
    }
    
    .modal-content {
        width: 95%;
        max-width: 95%;
    }
    
    .terms-scroll-container {
        max-height: 300px;
    }
    
    .modal-footer {
        flex-direction: column;
    }
    
    .modal-footer .btn {
        width: 100%;
        justify-content: center;
    }
}
