﻿    /* 배경 어둡게 */
    .modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    align-items: center;
    justify-content: center;
}

.modal-overlay.active {
    display: flex;
}
.auth-title{
    color:black;
}
/* 모달 창 */
.login-modal {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* 헤더 */
.login-header {
    padding: 24px 20px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.login-header-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.kiwoom-logo {
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 14px;
}

.login-header h2 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.version-info {
    font-size: 12px;
    color: #999;
}

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background 0.2s;
}

    .close-btn:hover {
        background: #f0f0f0;
        color: #333;
    }

/* 탭 */
.tab-container {
    display: flex;
    border-bottom: 1px solid #e0e0e0;
    background: #f9f9f9;
}

.tab {
    flex: 1;
    padding: 12px;
    text-align: center;
    font-size: 13px;
    cursor: pointer;
    background: #f9f9f9;
    border: none;
    color: #666;
    transition: all 0.3s;
    position: relative;
}

    .tab:hover {
        background: #f0f0f0;
    }

    .tab.active {
        color: #2563eb;
        font-weight: 600;
        background: white;
    }

        .tab.active::after {
            content: '';
            position: absolute;
            bottom: -1px;
            left: 0;
            right: 0;
            height: 2px;
            background: #2563eb;
        }

/* 콘텐츠 */
.login-content {
    padding: 24px 20px;
}

.form-group {
    margin-bottom: 16px;
}

    .form-group label {
        display: block;
        font-size: 13px;
        color: #333;
        margin-bottom: 6px;
        font-weight: 500;
    }

    .form-group input {
        width: 100%;
        padding: 12px;
        border: 1px solid #d0d0d0;
        border-radius: 4px;
        font-size: 13px;
        transition: border-color 0.3s;
    }

        .form-group input:focus {
            outline: none;
            border-color: #2563eb;
            box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
        }

        .form-group input::placeholder {
            color: #999;
        }

/* 체크박스 */
.checkbox-group {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

    .checkbox-group input[type="checkbox"] {
        width: 18px;
        height: 18px;
        cursor: pointer;
        accent-color: #2563eb;
    }

    .checkbox-group label {
        font-size: 12px;
        color: #666;
        cursor: pointer;
        margin: 0;
    }

/* 버튼 */
.button-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

.btn {
    padding: 12px 16px;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-select {
    background: #5a5a5a;
    color: white;
}

    .btn-select:hover {
        background: #3f3f3f;
        color:white!important;
    }

.btn-login {
    background: #2563eb;
    color: white;
}

    .btn-login:hover {
        background: #1d4ed8;
        color: white !important;
    }

    .btn-login:active {
        transform: scale(0.98);
    }

.btn-Auth {
    background: #999;
    color: white;
}

    .btn-Auth:hover {
        background: #666;
        color: white !important;
    }

    .btn-Auth:active {
        transform: scale(0.98);
    }

/* 하단 링크 */
.login-footer {
    padding: 16px 20px;
    border-top: 1px solid #e0e0e0;
    background: #f9f9f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
}

.footer-links {
    display: flex;
    gap: 12px;
}

    .footer-links a {
        color: #666;
        text-decoration: none;
        border-right: 1px solid #d0d0d0;
        padding-right: 12px;
    }

        .footer-links a:last-child {
            border-right: none;
            padding-right: 0;
        }

        .footer-links a:hover {
            color: #2563eb;
        }

.cert-manager {
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    color: #666;
}

    .cert-manager:hover {
        color: #2563eb;
    }

/* 탭 컨텐츠 숨기기 */
.tab-content {
    display: none;
}

    .tab-content.active {
        display: block;
    }

/* 아이콘 */
.icon {
    display: inline-block;
    font-size: 12px;
}

/* 인증서 관리 섹션 스타일 */
.cert-management-section {
    padding: 0 20px 20px;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

.btn-outline {
    background: white;
    border: 1px solid #2563eb;
    color: #2563eb;
}

    .btn-outline:hover {
        background: #eff6ff;
    }

.btn-danger-outline {
    background: white;
    border: 1px solid #dc2626;
    color: #dc2626;
}

    .btn-danger-outline:hover {
        background: #fef2f2;
    }

.btn-secondary {
    background: #6b7280;
    color: white;
}

    .btn-secondary:hover {
        background: #4b5563;
    }

.btn-primary {
    background: #2563eb;
    color: white;
}

    .btn-primary:hover {
        background: #1d4ed8;
    }

/* 아코디언 스타일 */
.cert-accordion {
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    margin-bottom: 10px;
}

    .cert-accordion summary {
        padding: 12px;
        cursor: pointer;
        font-weight: 500;
        background: #f9f9f9;
    }

        .cert-accordion summary:hover {
            background: #f0f0f0;
        }

.accordion-content {
    border-top: 1px solid #e0e0e0;
}
/* 모달 전체 텍스트 검정 */
.login-modal,
.login-modal * {
    color: #333;
}

    /* 버튼 텍스트는 흰색 유지 */
    .login-modal .btn {
        color: white;
    }

    .login-modal .btn-outline {
        color: #2563eb;
    }

    .login-modal .btn-danger-outline {
        color: #dc2626;
    }