@charset "UTF-8";

/* ========================================================================= */
/* HotInflu - Login Page Styles */
/* ========================================================================= */

/* ========================================================================= */
/* 1. Body & Background */
/* ========================================================================= */

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a1a 0%, #0f0f0f 50%, #1a1a1a 100%);
    position: relative;
    overflow: hidden;
}

/* 배경 데코레이션 */
body::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse 8s ease-in-out infinite;
}

body::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 143, 107, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse 10s ease-in-out infinite reverse;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}


/* ========================================================================= */
/* 2. Login Card */
/* ========================================================================= */

.login-card {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 440px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 48px 40px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.3),
        0 0 1px rgba(255, 255, 255, 0.1) inset;
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 카드 상단 accent line */
/* .login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ff6b35 0%, #ff8f6b 100%);
    border-radius: 24px 24px 0 0;
} */


/* ========================================================================= */
/* 3. Header Section */
/* ========================================================================= */

.login-card h1 {
    margin: 0 0 8px 0;
    font-size: 32px;
    font-weight: 800;
    color: #1a1a1a;
    text-align: center;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #ff6b35 0%, #ff8f6b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-card > p {
    margin: 0 0 40px 0;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    text-align: center;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}


/* ========================================================================= */
/* 4. Form Elements */
/* ========================================================================= */

.login-card form {
    margin-bottom: 32px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group:last-of-type {
    margin-bottom: 32px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    transition: color 0.2s ease;
}

.form-group input {
    width: 100%;
    height: 52px;
    padding: 0 18px;
    font-size: 15px;
    color: #1a1a1a;
    background-color: #f8f9fa;
    border: 2px solid #e8e8e8;
    border-radius: 12px;
    outline: none;
    transition: all 0.3s ease;
    font-family: 'Pretendard', 'Noto Sans KR', sans-serif;
}

.form-group input::placeholder {
    color: #a5a5a5;
}

.form-group input:focus {
    background-color: #ffffff;
    border-color: #ff6b35;
    box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.1);
}

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label {
    color: #ff6b35;
}

/* 비밀번호 입력 필드 특별 스타일 */
.form-group input[type="password"] {
    letter-spacing: 2px;
}

.form-group input[type="password"]::placeholder {
    letter-spacing: normal;
}


/* ========================================================================= */
/* 5. Submit Button */
/* ========================================================================= */

.btn-submit {
    width: 100%;
    height: 56px;
    padding: 0;
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(135deg, #ff6b35 0%, #ff8f6b 100%);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 
        0 4px 16px rgba(255, 107, 53, 0.3),
        0 0 0 0 rgba(255, 107, 53, 0.4);
    position: relative;
    overflow: hidden;
}

.btn-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 8px 24px rgba(255, 107, 53, 0.4),
        0 0 0 4px rgba(255, 107, 53, 0.1);
}

.btn-submit:hover::before {
    left: 100%;
}

.btn-submit:active {
    transform: translateY(0);
    box-shadow: 
        0 4px 12px rgba(255, 107, 53, 0.3),
        0 0 0 4px rgba(255, 107, 53, 0.1);
}

.btn-submit:focus {
    outline: none;
    box-shadow: 
        0 4px 16px rgba(255, 107, 53, 0.3),
        0 0 0 4px rgba(255, 107, 53, 0.2);
}


/* ========================================================================= */
/* 6. Footer Copyright */
/* ========================================================================= */

.footer-copy {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #e8e8e8;
    font-size: 12px;
    font-weight: 500;
    color: #999;
    text-align: center;
    letter-spacing: 0.3px;
}


/* ========================================================================= */
/* 7. Error & Success Messages (Optional) */
/* ========================================================================= */

.alert {
    padding: 14px 18px;
    margin-bottom: 24px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-error {
    background-color: #fee;
    border: 1px solid #fcc;
    color: #c33;
}

.alert-success {
    background-color: #efe;
    border: 1px solid #cfc;
    color: #3c3;
}

.alert-info {
    background-color: #eff8ff;
    border: 1px solid #bee5eb;
    color: #0c5460;
}


/* ========================================================================= */
/* 8. Loading State (Optional) */
/* ========================================================================= */

.btn-submit.loading {
    pointer-events: none;
    opacity: 0.7;
    position: relative;
}

.btn-submit.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}


/* ========================================================================= */
/* 9. Responsive Design */
/* ========================================================================= */

@media screen and (max-width: 767px) {
    body::before,
    body::after {
        width: 400px;
        height: 400px;
    }
    
    .login-card {
        max-width: 90%;
        padding: 40px 28px;
        border-radius: 20px;
    }
    
    .login-card h1 {
        font-size: 28px;
        margin-bottom: 6px;
    }
    
    .login-card > p {
        font-size: 13px;
        margin-bottom: 32px;
    }
    
    .form-group {
        margin-bottom: 20px;
    }
    
    .form-group:last-of-type {
        margin-bottom: 28px;
    }
    
    .form-group label {
        font-size: 13px;
        margin-bottom: 6px;
    }
    
    .form-group input {
        height: 48px;
        padding: 0 16px;
        font-size: 14px;
        border-radius: 10px;
    }
    
    .btn-submit {
        height: 52px;
        font-size: 15px;
        border-radius: 10px;
    }
    
    .footer-copy {
        margin-top: 28px;
        padding-top: 20px;
        font-size: 11px;
    }
}

@media screen and (max-width: 480px) {
    .login-card {
        max-width: 95%;
        padding: 32px 24px;
    }
    
    .login-card h1 {
        font-size: 26px;
    }
    
    .login-card > p {
        font-size: 12px;
        margin-bottom: 28px;
    }
    
    .form-group input {
        height: 46px;
        font-size: 14px;
    }
    
    .btn-submit {
        height: 50px;
        font-size: 14px;
    }
}


/* ========================================================================= */
/* 10. Accessibility */
/* ========================================================================= */

/* 포커스 시 접근성 개선 */
.form-group input:focus,
.btn-submit:focus {
    outline: 2px solid #ff6b35;
    outline-offset: 2px;
}

/* 고대비 모드 지원 */
@media (prefers-contrast: high) {
    .login-card {
        border: 2px solid #333;
    }
    
    .form-group input {
        border-width: 2px;
    }
    
    .form-group input:focus {
        border-width: 3px;
    }
}

/* 다크모드 선호 사용자 지원 (선택사항) */
@media (prefers-color-scheme: dark) {
    /* 이미 다크 배경이므로 추가 조정 불필요 */
}


/* ========================================================================= */
/* 11. Print Styles */
/* ========================================================================= */

@media print {
    body {
        background: white;
    }
    
    body::before,
    body::after {
        display: none;
    }
    
    .login-card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .btn-submit {
        display: none;
    }
}



/* ========================================================================= */
/* New Brand Intro Styles */
/* ========================================================================= */

.brand-intro {
    text-align: center;
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid #f0f0f0; /* 시스템 타이틀과 구분선 */
}

.brand-slogan {
    font-size: 20px;
    font-weight: 800;
    color: #1a1a1a;
    margin: 0 0 14px 0;
    letter-spacing: -0.03em;
    font-family: 'Pretendard', sans-serif;
}

.brand-description {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    margin: 0;
    word-break: keep-all; /* 한글 단어 단위 줄바꿈으로 깔끔하게 */
    font-weight: 400;
}

/* 기존 HotInflu 타이틀 영역 여백 조정 */
.system-title {
    margin-bottom: 32px;
}

.system-title h1 {
    margin: 0 0 4px 0 !important;
    font-size: 24px !important; /* 메인 슬로건보다 약간 작게 조절하여 밸런스 유지 */
}

.system-title p {
    margin: 0 0 40px 0;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    text-align: center;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* 모바일 대응 */
@media screen and (max-width: 480px) {
    .brand-slogan {
        font-size: 18px;
    }
    .brand-description {
        font-size: 13px;
    }
}