/* ID 찾기 페이지 전용 스타일 */

/* CAU 색상 정의 */
:root {
    --cau-blue: #0070c0;
    --cau-blue-hover: #005a9f;
    --success-color: #48c774;
    --error-color: #f14668;
    --info-color: #3298dc;
    --light-gray: #f5f5f5;
    --border-color: #dbdbdb;
    --text-gray: #4a4a4a;
}

/* 기본 스타일 */
.find-id-section {
    padding: 2rem 1.5rem;
    min-height: 100vh;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.find-id-wrapper {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
}

/* ID 찾기 카드 */
.find-id-card {
    background: white;
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid #e8e8e8;
}

/* 헤더 스타일 */
.find-id-header {
    margin-bottom: 2rem;
}

.find-id-logo {
    width: 80px;
    height: auto;
    margin-bottom: 1rem;
}

.find-id-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.5rem;
}

.find-id-subtitle {
    font-size: 1rem;
    color: var(--text-gray);
    margin-bottom: 0;
}

/* 단계별 컨테이너 */
.step-container {
    margin-bottom: 1.5rem;
}

.step-header {
    margin-bottom: 1.5rem;
    text-align: center;
}

.step-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--cau-blue);
    margin-bottom: 0.5rem;
}

.step-description {
    font-size: 0.9rem;
    color: var(--text-gray);
    margin-bottom: 0;
}

/* 입력 필드 스타일 */
.find-id-input {
    height: 48px;
    font-size: 1rem;
    border-radius: 8px;
    border: 2px solid var(--border-color);
    transition: border-color 0.3s ease;
}

.find-id-input:focus {
    border-color: var(--cau-blue);
    box-shadow: 0 0 0 0.125em rgba(0, 112, 192, 0.25);
}

.find-id-input::placeholder {
    color: #b5b5b5;
}

/* 버튼 스타일 */
.button.cau-blue {
    background-color: var(--cau-blue);
    border-color: var(--cau-blue);
    height: 48px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.button.cau-blue:hover {
    background-color: var(--cau-blue-hover);
    border-color: var(--cau-blue-hover);
    transform: translateY(-1px);
}

.button.is-success {
    height: 48px;
    border-radius: 8px;
    font-weight: 600;
}

.button.is-light {
    height: 48px;
    border-radius: 8px;
    font-weight: 600;
    border: 2px solid var(--border-color);
}

/* Label 스타일 */
.label {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

/* ID 결과 박스 */
.id-result-box {
    background: linear-gradient(135deg, var(--cau-blue) 0%, var(--cau-blue-hover) 100%);
    border-radius: 12px;
    padding: 2rem;
    margin: 1.5rem 0;
    box-shadow: 0 4px 20px rgba(0, 112, 192, 0.3);
}

.id-result-content {
    text-align: center;
    color: white;
}

.id-label {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.id-value {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    letter-spacing: 2px;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

/* 정보 박스 */
.info-box {
    background: #f0f8ff;
    border: 1px solid var(--info-color);
    border-radius: 8px;
    padding: 1rem;
    margin: 1.5rem 0;
}

.info-content {
    display: flex;
    align-items: center;
    color: var(--info-color);
    font-size: 0.9rem;
}

.info-content i {
    margin-right: 0.5rem;
    font-size: 1rem;
}

/* 버튼 그룹 */
.buttons-section {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.buttons-section .button {
    flex: 1;
}

/* 로딩 컨테이너 */
.loading-container {
    text-align: center;
    padding: 2rem;
}

.loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--light-gray);
    border-top: 4px solid var(--cau-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-text {
    color: var(--text-gray);
    font-size: 1rem;
    margin: 0;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 하단 링크 */
.bottom-links {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.link-text {
    font-size: 0.9rem;
    color: var(--text-gray);
    margin: 0;
}

.link {
    color: var(--cau-blue);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.link:hover {
    color: var(--cau-blue-hover);
    text-decoration: underline;
}

.link-separator {
    margin: 0 0.5rem;
    color: #ccc;
}

/* 에러 메시지 스타일 */
.error-message {
    font-weight: 500;
    margin-top: 1rem;
}

/* 타이머 스타일 */
#timer {
    color: var(--error-color);
}

/* 반응형 디자인 - 태블릿 */
@media screen and (max-width: 1024px) {
    .find-id-section {
        padding: 1.5rem 1rem;
    }
    
    .find-id-card {
        padding: 2rem;
    }
    
    .find-id-title {
        font-size: 1.5rem;
    }
}

/* 반응형 디자인 - 모바일 */
@media screen and (max-width: 768px) {
    .find-id-section {
        padding: 1rem 0.5rem;
        min-height: calc(100vh - 120px);
    }
    
    .find-id-wrapper {
        max-width: 100%;
    }
    
    .find-id-card {
        padding: 1.5rem;
        margin: 0 0.5rem;
        border-radius: 8px;
    }
    
    .find-id-logo {
        width: 60px;
    }
    
    .find-id-title {
        font-size: 1.25rem;
    }
    
    .find-id-subtitle {
        font-size: 0.9rem;
    }
    
    .step-title {
        font-size: 1.1rem;
    }
    
    .step-description {
        font-size: 0.85rem;
    }
    
    .find-id-input {
        height: 44px;
        font-size: 0.9rem;
    }
    
    .button.cau-blue,
    .button.is-success,
    .button.is-light {
        height: 44px;
        font-size: 0.9rem;
    }
    
    .id-result-box {
        padding: 1.5rem;
        margin: 1rem 0;
    }
    
    .id-label {
        font-size: 0.9rem;
    }
    
    .id-value {
        font-size: 1.25rem;
        letter-spacing: 1px;
    }
    
    .info-content {
        font-size: 0.85rem;
    }
    
    .buttons-section {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .link-text {
        font-size: 0.85rem;
    }
}

/* 반응형 디자인 - 작은 모바일 */
@media screen and (max-width: 480px) {
    .find-id-section {
        padding: 0.5rem 0.25rem;
    }
    
    .find-id-card {
        padding: 1.25rem;
        margin: 0 0.25rem;
    }
    
    .find-id-title {
        font-size: 1.1rem;
    }
    
    .find-id-subtitle {
        font-size: 0.85rem;
    }
    
    .step-title {
        font-size: 1rem;
    }
    
    .step-description {
        font-size: 0.8rem;
    }
    
    .find-id-input {
        height: 40px;
        font-size: 0.85rem;
    }
    
    .button.cau-blue,
    .button.is-success,
    .button.is-light {
        height: 40px;
        font-size: 0.85rem;
        padding: 0 0.75rem;
    }
    
    .id-result-box {
        padding: 1.25rem;
    }
    
    .id-value {
        font-size: 1.1rem;
        padding: 0.375rem;
    }
}

/* has-addons 필드 모바일 최적화 */
@media screen and (max-width: 768px) {
    .field.has-addons {
        display: flex;
        flex-wrap: wrap;
    }
    
    .field.has-addons .control.is-expanded {
        flex: 1;
        min-width: 0;
    }
    
    .field.has-addons .control:not(.is-expanded) {
        flex-shrink: 0;
    }
}

@media screen and (max-width: 480px) {
    .field.has-addons {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .field.has-addons .control {
        width: 100%;
    }
}
