/*
* 파일명: style.css
* 경로: /home/urlkr/public_html/secure-download/assets/css/
* 기능: 범용 보안 다운로드 시스템 스타일시트
* 작성일: 2025-01-10
* 수정일: 2025-01-10
*/

/* ===================================
* 기본 설정
* =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Malgun Gothic", Roboto, Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* ===================================
* 컨테이너
* =================================== */
.container {
    width: 100%;
    max-width: 500px;
}

/* ===================================
* 다운로드 카드
* =================================== */
.download-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

/* ===================================
* 카드 헤더
* =================================== */
.card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2.5rem 2rem;
    text-align: center;
}

.card-header.success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.icon-lock,
.icon-success {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.95;
}

.card-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.card-header p {
    font-size: 1rem;
    opacity: 0.9;
}

/* ===================================
* 메시지
* =================================== */
.message {
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
}

.message-error {
    background: #fee;
    color: #c00;
    border-left: 4px solid #c00;
}

.message-success {
    background: #efe;
    color: #0a0;
    border-left: 4px solid #0a0;
}

.message i {
    font-size: 1.25rem;
}

/* ===================================
* 인증 폼
* =================================== */
.auth-form {
    padding: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.code-input {
    width: 100%;
    padding: 1rem;
    font-size: 2rem;
    text-align: center;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-weight: 600;
    letter-spacing: 0.5rem;
    transition: all 0.3s ease;
}

.code-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group small {
    display: block;
    color: #666;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    text-align: center;
}

.btn-submit {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

/* ===================================
* 다운로드 정보
* =================================== */
.download-info {
    padding: 2rem;
    text-align: center;
}

.download-info h2 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.download-info p {
    color: #666;
    margin-bottom: 1.5rem;
}

.file-info {
    background: #f8f9ff;
    padding: 1rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1rem;
}

.file-info i {
    font-size: 2rem;
    color: #667eea;
}

.file-info span {
    font-weight: 600;
    color: #333;
}

.file-info small {
    color: #999;
    font-size: 0.85rem;
}

/* ===================================
* 다운로드 버튼
* =================================== */
.btn-download {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: calc(100% - 4rem);
    margin: 0 2rem 2rem 2rem;
    padding: 1.25rem;
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: none;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4);
}

.btn-download i {
    font-size: 1.5rem;
}

/* ===================================
* 안내사항
* =================================== */
.info-box {
    padding: 2rem;
    background: #f8f9ff;
    border-top: 1px solid #e5e8ec;
}

.info-box h3 {
    font-size: 1rem;
    color: #333;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-box h3 i {
    color: #667eea;
}

.info-box ul {
    list-style: none;
    padding-left: 0;
}

.info-box li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: #666;
    font-size: 0.9rem;
    line-height: 1.6;
}

.info-box li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: bold;
}

/* ===================================
* 푸터
* =================================== */
.footer {
    text-align: center;
    color: white;
    padding: 1.5rem 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

/* ===================================
* 반응형
* =================================== */
@media (max-width: 576px) {
    body {
        padding: 10px;
    }
    
    .card-header {
        padding: 2rem 1.5rem;
    }
    
    .card-header h1 {
        font-size: 1.5rem;
    }
    
    .icon-lock,
    .icon-success {
        font-size: 3rem;
    }
    
    .auth-form {
        padding: 1.5rem;
    }
    
    .code-input {
        font-size: 1.75rem;
        letter-spacing: 0.3rem;
    }
    
    .info-box {
        padding: 1.5rem;
    }
    
    .download-info {
        padding: 1.5rem;
    }
}