/* ==========================================
   로그인 화면 모던 디자인
   ========================================== */

/* 커스텀 체크박스 - 모던 디자인 */
.checkbox-group-modern {
    margin: 1.5rem 0 !important;
}

.custom-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
    position: relative;
    padding-left: 0;
    gap: 0;
}

.custom-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

/* 체크박스 마크 */
.checkbox-mark {
    position: relative;
    display: inline-block;
    width: 22px;
    height: 22px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

/* 체크박스 라벨 */
.checkbox-label {
    margin-left: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    font-weight: 400;
    transition: color 0.3s ease;
}

/* 호버 효과 */
.custom-checkbox:hover .checkbox-mark {
    border-color: rgba(102, 126, 234, 0.6);
    background: rgba(102, 126, 234, 0.1);
    transform: scale(1.05);
}

.custom-checkbox:hover .checkbox-label {
    color: rgba(255, 255, 255, 0.95);
}

/* 체크된 상태 */
.custom-checkbox input[type="checkbox"]:checked ~ .checkbox-mark {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    box-shadow: 0 0 15px rgba(102, 126, 234, 0.5);
}

/* 체크 아이콘 */
.checkbox-mark::after {
    content: "";
    position: absolute;
    display: none;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2.5px 2.5px 0;
    transform: rotate(45deg);
}

.custom-checkbox input[type="checkbox"]:checked ~ .checkbox-mark::after {
    display: block;
    animation: checkBounce 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 체크 애니메이션 */
@keyframes checkBounce {
    0% {
        transform: rotate(45deg) scale(0);
        opacity: 0;
    }
    50% {
        transform: rotate(45deg) scale(1.2);
        opacity: 1;
    }
    100% {
        transform: rotate(45deg) scale(1);
        opacity: 1;
    }
}

/* 포커스 상태 */
.custom-checkbox input[type="checkbox"]:focus ~ .checkbox-mark {
    outline: 2px solid rgba(102, 126, 234, 0.4);
    outline-offset: 2px;
}

/* 로그인 푸터 개선 */
.login-footer {
    margin-top: 2rem;
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.login-footer p {
    margin: 0;
}

.login-footer a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.login-footer a:hover {
    color: #667eea;
}

.login-footer a i {
    font-size: 0.9rem;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .checkbox-mark {
        width: 20px;
        height: 20px;
    }

    .checkbox-mark::after {
        left: 5px;
        top: 1px;
        width: 4px;
        height: 9px;
        border-width: 0 2px 2px 0;
    }

    .checkbox-label {
        font-size: 0.9rem;
        margin-left: 0.6rem;
    }
}

/* 다크 테마 최적화 */
@media (prefers-color-scheme: dark) {
    .checkbox-mark {
        background: rgba(255, 255, 255, 0.03);
        border-color: rgba(255, 255, 255, 0.25);
    }

    .custom-checkbox:hover .checkbox-mark {
        background: rgba(102, 126, 234, 0.15);
    }
}
