@charset "UTF-8";
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@font-face {
  font-family: 'Noto Sans KR';
  src: url('static/font/Noto_Sans_KR/static/NotoSansKR-Light.woff2') format('woff2'),
       url('static/font/Noto_Sans_KR/static/NotoSansKR-Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: 'Noto Sans KR';
  src: url('static/font/Noto_Sans_KR/static/NotoSansKR-Regular.woff2') format('woff2'),
       url('static/font/Noto_Sans_KR/static/NotoSansKR-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Noto Sans KR';
  src: url('static/font/Noto_Sans_KR/static/NotoSansKR-Medium.woff2') format('woff2'),
       url('static/font/Noto_Sans_KR/static/NotoSansKR-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: 'Noto Sans KR';
  src: url('static/font/Noto_Sans_KR/static/NotoSansKR-SemiBold.woff2') format('woff2'),
       url('static/font/Noto_Sans_KR/static/NotoSansKR-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
}

@font-face {
  font-family: 'Noto Sans KR';
  src: url('static/font/Noto_Sans_KR/static/NotoSansKR-Bold.woff2') format('woff2'),
       url('static/font/Noto_Sans_KR/static/NotoSansKR-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
}

body {
    font-family: 'Noto Sans KR', 'Malgun Gothic', '맑은 고딕', sans-serif;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    min-height: 100vh;
    padding: 20px;
    color: #e2e8f0;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background: #1e293b;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    overflow: hidden;
    border: 1px solid #334155;
}

.dashboard-content {
    padding: 30px;
}

#corpList {
    list-style: none;
    margin: 0;
    padding: 0;
    border: 1px solid #ccc;
    border-radius: 6px;
    max-height: 200px;
    overflow-y: auto;
    position: absolute;
    background: #fff;
    width: calc(100% - 2px);
    z-index: 1000;
    display: none; /* 처음에는 안 보이게 */
}

#corpList li {
    padding: 10px 12px;   /* 상하 패딩 살짝 늘림 */
    cursor: pointer;
    transition: background 0.2s;
    font-size: 14px;       /* 원하는 폰트 크기 */
}
#corpList li:hover {
    background-color: #f0f0f0;
}

/* 찾기 히어로 섹션 */
.find-hero {
    background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.find-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
}

.hero-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
    position: relative;
}

.hero-subtitle {
    font-size: 16px;
    opacity: 0.9;
    position: relative;
}

/* 탭 네비게이션 */
.tab-navigation {
    display: flex;
    background: #2d3748;
    border-radius: 12px;
    padding: 5px;
    margin-bottom: 30px;
    border: 1px solid #4a5568;
    position: relative;
    z-index: 10;
}

.tab-button {
    flex: 1;
    padding: 15px 20px;
    background: none;
    border: none;
    color: #a0aec0;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.tab-button.active {
    background: #7c3aed;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(124, 58, 237, 0.3);
}

.tab-button.completed {
    background: #8b5cf6;
    color: white;
}

.tab-button:hover:not(.active) {
    background: #374151;
    color: #e2e8f0;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 폼 섹션 */
.form-section {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 20px;
    color: #374151;
}

.section-title {
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-subtitle {
    color: #6b7280;
    margin-bottom: 25px;
    font-size: 14px;
}

.form-grid {
    display: grid;
    gap: 20px;
    margin-bottom: 25px;
}

.form-grid.single {
    grid-template-columns: 1fr;
}

.form-group {
    position: relative;
}

.form-label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
    font-size: 14px;
}

.required {
    color: #ef4444;
}

.form-input, .form-select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: #ffffff;
}

.form-input:focus, .form-select:focus {
    outline: none;
    border-color: #7c3aed;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.form-input.error, .form-select.error {
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.05);
}

.form-input.success {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.05);
}

.error-msg {
    color: #ef4444;
    font-size: 12px;
    margin-top: 5px;
    display: none;
}

.error-msg.show {
    display: block;
}

.success-msg {
    color: #10b981;
    font-size: 12px;
    margin-top: 5px;
    display: none;
}

.success-msg.show {
    display: block;
}

/* 인증 섹션 */
.verify-section {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 20px 0;
    padding: 20px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.verify-timer {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ef4444;
    font-weight: 600;
    font-size: 14px;
}

.timer-count {
    background: #ef4444;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-family: monospace;
}

.verify-input {
    margin-top: 15px;
}

.input-group {
    display: flex;
    gap: 10px;
}

.input-group .form-input {
    flex: 1;
}

.input-group .btn {
    flex-shrink: 0;
    min-width: 80px;
}

/* 비밀번호 강도 표시 */
.password-strength {
    margin-top: 8px;
}

.strength-bar {
    width: 100%;
    height: 4px;
    background: #e5e7eb;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 5px;
}

.strength-fill {
    height: 100%;
    background: #ef4444;
    width: 0%;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.strength-fill.weak {
    background: #ef4444;
    width: 25%;
}

.strength-fill.fair {
    background: #f59e0b;
    width: 50%;
}

.strength-fill.good {
    background: #3b82f6;
    width: 75%;
}

.strength-fill.strong {
    background: #10b981;
    width: 100%;
}

.strength-text {
    font-size: 12px;
    color: #6b7280;
}

/* 비밀번호 규칙 */
.password-rules {
    background: #f8fafc;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
    border: 1px solid #e5e7eb;
}

.password-rules h4 {
    color: #374151;
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 16px;
}

.password-rules ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.rule-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 14px;
}

.rule-icon {
    font-size: 12px;
    width: 16px;
}

.rule-item.valid .rule-icon {
    color: #10b981;
}

.rule-item.valid .rule-text {
    color: #10b981;
    text-decoration: line-through;
}

.rule-item.invalid .rule-icon {
    color: #ef4444;
}

.rule-item.invalid .rule-text {
    color: #6b7280;
}

/* 보안 팁 */
.security-tips {
    background: #f0f9ff;
    border-radius: 8px;
    padding: 20px;
    margin: 25px 0;
    border: 1px solid #0ea5e9;
}

.security-tips h4 {
    color: #0369a1;
    font-weight: 600;
    margin-bottom: 12px;
    font-size: 16px;
}

.security-tips ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.security-tips li {
    color: #0369a1;
    font-size: 14px;
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.security-tips li::before {
    content: '🔐';
    position: absolute;
    left: 0;
    font-size: 12px;
}

/* 정보 박스 */
.info-box {
    background: #2d3748;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
    border: 1px solid #4a5568;
}

.info-box h4 {
    color: #60a5fa;
    font-weight: 600;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
}

.info-box ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.info-box li {
    color: #a0aec0;
    font-size: 14px;
    margin-bottom: 5px;
    padding-left: 20px;
    position: relative;
}

.info-box li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #34d399;
    font-weight: 700;
}

/* 결과 섹션 */
.result-section {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 20px;
    text-align: center;
}

.result-content.success {
    color: #065f46;
}

.result-content.error {
    color: #991b1b;
}

.result-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.result-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
}

.result-info {
    margin-bottom: 30px;
    line-height: 1.6;
}

.found-id-box {
    background: #f0fdf4;
    border: 2px solid #10b981;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    display: inline-block;
    min-width: 300px;
}

.found-id-label {
    font-size: 14px;
    color: #059669;
    font-weight: 600;
    margin-bottom: 8px;
}

.found-id-value {
    font-size: 24px;
    font-weight: 700;
    color: #065f46;
    font-family: monospace;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.found-id-date {
    font-size: 12px;
    color: #6b7280;
}

.result-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

/* 성공 섹션 */
.success-section {
    text-align: center;
    padding: 40px 30px;
}

.success-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 24px;
}

.success-title {
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 10px;
}

.success-desc {
    color: #6b7280;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 25px;
}

/* 버튼 스타일 */
.button-group {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

.btn {
    padding: 12px 24px;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    min-width: 100px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(124, 58, 237, 0.3);
    text-decoration: none;
    color: white;
}

.btn-primary:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-secondary {
    background: #374151;
    color: #e2e8f0;
    border: 1px solid #4b5563;
}

.btn-secondary:hover {
    background: #4b5563;
    transform: translateY(-2px);
    text-decoration: none;
    color: #e2e8f0;
}

/* 액션바 */
.action-bar {
    background: #2d3748;
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
    border: 1px solid #4a5568;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.action-info {
    color: #a0aec0;
    font-size: 14px;
}

.action-buttons {
    display: flex;
    gap: 12px;
}

/* 하단 로그인 섹션 */
.bottom-login-section {
    margin-top: 30px;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border-radius: 15px;
    padding: 25px 30px;
    border: 1px solid #475569;
    position: relative;
    overflow: hidden;
}

.bottom-login-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #7c3aed 0%, #0891b2 50%, #059669 100%);
}

.bottom-login-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.bottom-login-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.bottom-login-question {
    color: #e2e8f0;
    font-size: 16px;
    font-weight: 600;
}

.bottom-login-help {
    color: #94a3b8;
    font-size: 14px;
}

.bottom-login-links {
    display: flex;
    gap: 12px;
    align-items: center;
}

.bottom-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #e2e8f0;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.bottom-link:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
}

.bottom-link.primary {
    background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%);
    border-color: #7c3aed;
    color: white;
    font-weight: 600;
}

.bottom-link.primary:hover {
    background: linear-gradient(135deg, #5b21b6 0%, #4c1d95 100%);
    color: white;
}

.bottom-link-icon {
    font-size: 14px;
    opacity: 0.9;
}

.bottom-link-text {
    font-size: 13px;
}

.bottom-help-section {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
}

.help-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.1) 50%, transparent 100%);
    margin-bottom: 15px;
}

.help-links {
    display: flex;
    justify-content: center;
    gap: 25px;
}

.help-link {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #94a3b8;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 8px 12px;
    border-radius: 6px;
}

.help-link:hover {
    color: #e2e8f0;
    background: rgba(255, 255, 255, 0.05);
    text-decoration: none;
}

.help-icon {
    font-size: 12px;
    opacity: 0.8;
}

/* 로딩 스피너 */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #7c3aed;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 반응형 */
@media (max-width: 768px) {
    .container {
        margin: 10px;
        border-radius: 12px;
    }

    .dashboard-content {
        padding: 20px;
    }

    .tab-navigation {
        flex-wrap: wrap;
        gap: 5px;
    }

    .tab-button {
        flex: none;
        min-width: calc(50% - 2.5px);
        font-size: 12px;
        padding: 12px 16px;
    }

    .bottom-login-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .bottom-login-links {
        justify-content: center;
        flex-wrap: wrap;
        gap: 8px;
    }

    .action-bar {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .action-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .input-group {
        flex-direction: column;
    }

    .verify-section {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .result-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .found-id-box {
        min-width: auto;
        width: 100%;
    }
}